postgresql/src/backend/catalog
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
..
.gitignore Replace our traditional initial-catalog-data format with a better design. 2018-04-08 13:17:27 -04:00
aclchk.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
catalog.c Do not select new object OIDs that match recently-dead entries. 2018-04-11 17:41:22 -04:00
Catalog.pm Don't fall off the end of perl functions 2018-05-27 09:08:42 -04:00
dependency.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
genbki.pl Don't fall off the end of perl functions 2018-05-27 09:08:42 -04:00
heap.c Allow for pg_upgrade of attributes with missing values 2018-06-22 08:42:36 -04:00
index.c Count heap tuples in non-SnapshotAny path in IndexBuildHeapRangeScan(). 2018-05-08 00:20:19 -04:00
indexing.c Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
information_schema.sql Add prokind column, replacing proisagg and proiswindow 2018-03-02 13:48:33 -05:00
Makefile Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
namespace.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
objectaccess.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
objectaddress.c Improve English wording of some other getObjectDescription() messages. 2018-05-24 14:01:10 -04:00
partition.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_aggregate.c Fix type checking for support functions of parallel VARIADIC aggregates. 2018-05-15 15:06:53 -04:00
pg_collation.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_constraint.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_conversion.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_db_role_setting.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_depend.c Local partitioned indexes 2018-01-19 11:49:22 -03:00
pg_enum.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_inherits.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_largeobject.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_namespace.c Replace GrantObjectType with ObjectType 2018-01-19 14:01:14 -05:00
pg_operator.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_proc.c Remove obsolete prohibition on function name matching a column name. 2018-06-18 11:57:33 -04:00
pg_publication.c Logical replication support for TRUNCATE 2018-04-07 11:34:11 -04:00
pg_range.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_shdepend.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_subscription.c Split the SetSubscriptionRelState function into two 2018-04-06 10:00:26 -04:00
pg_type.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
sql_feature_packages.txt > I have installed your patch and adjusted the names of the standards 2004-12-02 22:51:28 +00:00
sql_features.txt Update SQL features list 2018-05-21 15:29:22 -04:00
storage.c Further cleanup of client dependencies on src/include/catalog headers. 2018-04-09 14:39:58 -04:00
system_views.sql Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
toasting.c Rename IndexInfo.ii_KeyAttrNumbers array 2018-04-12 13:02:45 +03:00