postgresql/src/bin
Tom Lane d5722c9279 Fix some more omissions in pg_upgrade's tests for non-upgradable types.
Commits 29aeda6e4 et al closed up some oversights involving not checking
for non-upgradable types within container types, such as arrays and
ranges.  However, I only looked at version.c, failing to notice that
there were substantially-equivalent tests in check.c.  (The division
of responsibility between those files is less than clear...)

In addition, because genbki.pl does not guarantee that auto-generated
rowtype OIDs will hold still across versions, we need to consider that
the composite type associated with a system catalog or view is
non-upgradable.  It seems unlikely that someone would have a user
column declared that way, but if they did, trying to read it in another
PG version would likely draw "no such pg_type OID" failures, thanks
to the type OID embedded in composite Datums.

To support the composite and reg*-type cases, extend the recursive
query that does the search to allow any base query that returns
a column of pg_type OIDs, rather than limiting it to exactly one
starting type.

As before, back-patch to all supported branches.

Discussion: https://postgr.es/m/2798740.1619622555@sss.pgh.pa.us
2021-04-29 15:24:37 -04:00
..
initdb Use native path separators to pg_ctl in initdb 2021-03-02 15:39:34 -03:00
pg_archivecleanup Translation updates 2020-11-09 12:42:39 +01:00
pg_basebackup Translation updates 2020-11-09 12:42:39 +01:00
pg_config Translation updates 2020-11-09 12:42:39 +01:00
pg_controldata Translation updates 2020-11-09 12:42:39 +01:00
pg_ctl Translation updates 2020-11-09 12:42:39 +01:00
pg_dump Fix pg_restore's misdesigned code for detecting archive file format. 2021-04-01 13:34:16 -04:00
pg_resetwal Translation updates 2020-11-09 12:42:39 +01:00
pg_rewind Translation updates 2021-02-08 18:07:32 +01:00
pg_test_fsync Translation updates 2020-11-09 12:42:39 +01:00
pg_test_timing Translation updates 2020-11-09 12:42:39 +01:00
pg_upgrade Fix some more omissions in pg_upgrade's tests for non-upgradable types. 2021-04-29 15:24:37 -04:00
pg_waldump pg_waldump: Fix bug in per-record statistics. 2021-03-23 09:55:33 +09:00
pgbench pgbench: Remove dead code 2021-01-28 12:50:40 -03:00
pgevent Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
psql Fix psql's \connect command some more. 2021-03-23 14:27:50 -04:00
scripts Translation updates 2020-11-09 12:42:39 +01:00
Makefile Rename user-facing tools with "xlog" in the name to say "wal". 2017-02-09 16:23:46 -05:00