Partitioning Tables
Table Inheritance
create table master (
pk INTEGER primary key ,
tag text,
parent integer
);
create table master_child() inherits (master);
ALTER TABLE public.master_child
ADD PRIMARY KEY (pk);
select * from master;
select * from master_child;
insert into master (pk, tag, parent) values (1,'pencil',0);
insert into master_child (pk, tag, parent) values (2,'pen',0);
update master set tag = 'monitor' where pk = 2;
select * from only master;
select * from only master_child;
-- error
drop table master;
drop table master cascade ;Range Partitioning
List Partitioning
Hash Partitioning
Default Partitioning
Multilevel Partitioning
Attach and DeAttach Partitions
Altering Partitions
Partition Indexes
Last updated