postgresql/src/bin
Peter Eisentraut dfb75e478c Add primary keys and unique constraints to system catalogs
For those system catalogs that have a unique indexes, make a primary
key and unique constraint, using ALTER TABLE ... PRIMARY KEY/UNIQUE
USING INDEX.

This can be helpful for GUI tools that look for a primary key, and it
might in the future allow declaring foreign keys, for making schema
diagrams.

The constraint creation statements are automatically created by
genbki.pl from DECLARE_UNIQUE_INDEX directives.  To specify which one
of the available unique indexes is the primary key, use the new
directive DECLARE_UNIQUE_INDEX_PKEY instead.  By convention, we
usually make a catalog's OID column its primary key, if it has one.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/dc5f44d9-5ec1-a596-0251-dadadcdede98@2ndquadrant.com
2021-01-30 19:44:29 +01:00
..
initdb Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_archivecleanup Improve common/logging.c's support for multiple verbosity levels. 2020-09-17 12:52:18 -04:00
pg_basebackup Remove gratuitous uses of deprecated SELECT INTO 2021-01-28 14:28:41 +01:00
pg_checksums Remove gratuitous uses of deprecated SELECT INTO 2021-01-28 14:28:41 +01:00
pg_config Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_controldata Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_ctl Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_dump Fix typo 2021-01-29 09:43:21 +01:00
pg_resetwal Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_rewind Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_test_fsync Clean up after newly-added tests for pg_test_fsync and pg_test_timing. 2020-10-07 13:27:33 -04:00
pg_test_timing Clean up after newly-added tests for pg_test_fsync and pg_test_timing. 2020-10-07 13:27:33 -04:00
pg_upgrade Avoid redundantly prefixing PQerrorMessage for a connection failure. 2021-01-22 16:52:31 -05:00
pg_verifybackup Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_waldump Update copyright for 2021 2021-01-02 13:06:25 -05:00
pgbench pgbench: Remove dead code 2021-01-28 12:50:40 -03:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql Code review for psql's helpSQL() function. 2021-01-26 13:04:52 -05:00
scripts Avoid redundantly prefixing PQerrorMessage for a connection failure. 2021-01-22 16:52:31 -05:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00