postgresql/src/bin
Andrew Dunstan 2448adf29c Allow for pg_upgrade of attributes with missing values
Commit 16828d5c02 neglected to do this, so upgraded databases would
silently get null instead of the specified default in rows without the
attribute defined.

A new binary upgrade function is provided to perform this and pg_dump is
adjusted to output a call to the function if required in binary upgrade
mode.

Also included is code to drop missing attribute values for dropped
columns. That way if the type is later dropped the missing value won't
have a dangling reference to the type.

Finally the regression tests are adjusted to ensure that there is a row
with a missing value so that this code is exercised in upgrade testing.

Catalog version unfortunately bumped.

Regression test changes from Tom Lane.
Remainder from me, reviewed by Tom Lane, Andres Freund, Alvaro Herrera

Discussion: https://postgr.es/m/19987.1529420110@sss.pgh.pa.us
2018-06-22 08:42:36 -04:00
..
initdb Translation updates 2018-05-21 12:29:52 -04:00
pg_archivecleanup Don't fall off the end of perl functions 2018-05-27 09:08:42 -04:00
pg_basebackup Translation updates 2018-05-21 12:29:52 -04:00
pg_config Translation updates 2018-05-21 12:29:52 -04:00
pg_controldata Translation updates 2018-05-21 12:29:52 -04:00
pg_ctl Translation updates 2018-05-21 12:29:52 -04:00
pg_dump Allow for pg_upgrade of attributes with missing values 2018-06-22 08:42:36 -04:00
pg_resetwal Fix incorrect ordering of operations in pg_resetwal and pg_rewind. 2018-05-23 10:59:55 -04:00
pg_rewind Don't fall off the end of perl functions 2018-05-27 09:08:42 -04:00
pg_test_fsync Translation updates 2018-05-21 12:29:52 -04:00
pg_test_timing Translation updates 2018-05-21 12:29:52 -04:00
pg_upgrade Translation updates 2018-05-21 12:29:52 -04:00
pg_verify_checksums Add missing include 2018-06-20 18:19:35 +02:00
pg_waldump Use snprintf not sprintf in pg_waldump's timestamptz_to_str. 2018-06-16 14:45:47 -04:00
pgbench Don't fall off the end of perl functions 2018-05-27 09:08:42 -04:00
pgevent Update copyright for 2018 2018-01-02 23:30:12 -05:00
psql Translation updates 2018-05-21 12:29:52 -04:00
scripts Translation updates 2018-05-21 12:29:52 -04:00
Makefile Allow on-line enabling and disabling of data checksums 2018-04-05 22:04:48 +02:00