pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable @ 2021-04-29 19:24 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-04-29 19:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/57c081de0afcd01bf47c46f015bf8886b01c2c21 Modified Files -------------- src/bin/pg_upgrade/check.c | 223 +++++++++++++++------------------------- src/bin/pg_upgrade/pg_upgrade.h | 6 ++ src/bin/pg_upgrade/version.c | 53 ++++++++-- 3 files changed, 133 insertions(+), 149 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable @ 2021-04-29 19:24 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-04-29 19:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bbcfee0e56a2a563a4907b116da72081a408eadf Modified Files -------------- src/bin/pg_upgrade/check.c | 223 +++++++++++++++------------------------- src/bin/pg_upgrade/pg_upgrade.h | 6 ++ src/bin/pg_upgrade/version.c | 53 ++++++++-- 3 files changed, 133 insertions(+), 149 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable @ 2021-04-29 19:24 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-04-29 19:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ba86371b9ca048eeffc5f26530b78f64f2884ed5 Modified Files -------------- src/bin/pg_upgrade/check.c | 222 +++++++++++++++------------------------- src/bin/pg_upgrade/pg_upgrade.h | 6 ++ src/bin/pg_upgrade/version.c | 53 ++++++++-- 3 files changed, 133 insertions(+), 148 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable @ 2021-04-29 19:24 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-04-29 19:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/404946d40109fb247f51b553ac00198765c6c1cb Modified Files -------------- src/bin/pg_upgrade/check.c | 222 +++++++++++++++------------------------- src/bin/pg_upgrade/pg_upgrade.h | 6 ++ src/bin/pg_upgrade/version.c | 53 ++++++++-- 3 files changed, 133 insertions(+), 148 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable @ 2021-04-29 19:24 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-04-29 19:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d5722c92795d6300be731bd7af4b41567e402c79 Modified Files -------------- src/bin/pg_upgrade/check.c | 222 +++++++++++++++------------------------- src/bin/pg_upgrade/pg_upgrade.h | 6 ++ src/bin/pg_upgrade/version.c | 53 ++++++++-- 3 files changed, 133 insertions(+), 148 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable @ 2021-04-29 19:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-04-29 19:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/54a23307193c30197ba89d680bb25a72c1fd8384 Modified Files -------------- src/bin/pg_upgrade/check.c | 222 +++++++++++++++------------------------- src/bin/pg_upgrade/pg_upgrade.h | 6 ++ src/bin/pg_upgrade/version.c | 53 ++++++++-- 3 files changed, 133 insertions(+), 148 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2021-04-29 19:25 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-04-29 19:24 pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2021-04-29 19:24 pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2021-04-29 19:24 pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2021-04-29 19:24 pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2021-04-29 19:24 pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2021-04-29 19:25 pgsql: Fix some more omissions in pg_upgrade's tests for non-upgradable Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox