May 2019
Intermediate to advanced
600 pages
20h 46m
English
PostgreSQL 11 adds the ability to have primary keys defined over a partitioned table, enforcing uniqueness across partitions. This requires that the partition key is the same, or a subset of the columns of the primary key.
You can define references from a partitioned table to normal tables to enforce foreign key constraints. References to a partitioned table should be possible in PostgreSQL 12.
Partition tables can now have row triggers.
Partitioned tables also support default partitions, but I recommend against using them because of the way table locking works with that feature.
Read now
Unlock full access