postgresql/src/bin
Robert Haas f0e44751d7 Implement table partitioning.
Table partitioning is like table inheritance and reuses much of the
existing infrastructure, but there are some important differences.
The parent is called a partitioned table and is always empty; it may
not have indexes or non-inherited constraints, since those make no
sense for a relation with no data of its own.  The children are called
partitions and contain all of the actual data.  Each partition has an
implicit partitioning constraint.  Multiple inheritance is not
allowed, and partitioning and inheritance can't be mixed.  Partitions
can't have extra columns and may not allow nulls unless the parent
does.  Tuples inserted into the parent are automatically routed to the
correct partition, so tuple-routing ON INSERT triggers are not needed.
Tuple routing isn't yet supported for partitions which are foreign
tables, and it doesn't handle updates that cross partition boundaries.

Currently, tables can be range-partitioned or list-partitioned.  List
partitioning is limited to a single column, but range partitioning can
involve multiple columns.  A partitioning "column" can be an
expression.

Because table partitioning is less general than table inheritance, it
is hoped that it will be easier to reason about properties of
partitions, and therefore that this will serve as a better foundation
for a variety of possible optimizations, including query planner
optimizations.  The tuple routing based which this patch does based on
the implicit partitioning constraints is an example of this, but it
seems likely that many other useful optimizations are also possible.

Amit Langote, reviewed and tested by Robert Haas, Ashutosh Bapat,
Amit Kapila, Rajkumar Raghuwanshi, Corey Huinker, Jaime Casanova,
Rushabh Lathia, Erik Rijkers, among others.  Minor revisions by me.
2016-12-07 13:17:55 -05:00
..
initdb Bring some clarity to the defaults for the xxx_flush_after parameters. 2016-11-25 18:36:10 -05:00
pg_archivecleanup pg_archivecleanup: Add NLS 2016-11-04 10:40:05 -04:00
pg_basebackup Change qr/foo$/m to qr/foo\n/m, for Perl 5.8.8. 2016-11-07 20:27:30 -05:00
pg_config Translation updates 2016-08-08 11:08:00 -04:00
pg_controldata Fix CRC check handling in get_controlfile 2016-09-28 12:00:00 -04:00
pg_ctl pg_ctl: Add long option for -o 2016-10-19 08:48:48 -04:00
pg_dump Implement table partitioning. 2016-12-07 13:17:55 -05:00
pg_resetxlog Reduce the default for max_worker_processes back to 8. 2016-12-05 10:53:21 -05:00
pg_rewind pg_rewing pg_upgrade: Fix translation markers 2016-11-07 09:31:26 -05:00
pg_test_fsync pg_test_fsync: Add NLS 2016-11-04 10:40:05 -04:00
pg_test_timing pg_test_timing: Add NLS 2016-11-04 10:40:05 -04:00
pg_upgrade pg_upgrade: Upgrade sequence data via pg_dump 2016-11-13 21:44:58 -05:00
pg_xlogdump pg_xlogdump: Add NLS 2016-11-04 10:40:05 -04:00
pgbench pgbench: Increase maximum size of log filename from 64 to MAXPGPATH. 2016-11-15 09:11:51 -05:00
pgevent Update copyright for 2016 2016-01-02 13:33:40 -05:00
psql Implement table partitioning. 2016-12-07 13:17:55 -05:00
scripts Include <sys/select.h> where needed 2016-09-27 01:05:21 -03:00
Makefile Update copyright for 2016 2016-01-02 13:33:40 -05:00