pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable 7+ messages / 1 participants [nested] [flat]
* pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable @ 2019-11-13 16:36 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-13 16:36 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Handle arrays and ranges in pg_upgrade's test for non-upgradable types. pg_upgrade needs to check whether certain non-upgradable data types appear anywhere on-disk in the source cluster. It knew that it has to check for these types being contained inside domains and composite types; but it somehow overlooked that they could be contained in arrays and ranges, too. Extend the existing recursive-containment query to handle those cases. We probably should have noticed this oversight while working on commit 0ccfc2822 and follow-ups, but we failed to :-(. The whole thing's possibly a bit overdesigned, since we don't really expect that any of these types will appear on disk; but if we're going to the effort of doing a recursive search then it's silly not to cover all the possibilities. While at it, refactor so that we have only one copy of the search logic, not three-and-counting. Also, to keep the branches looking more alike, back-patch the output wording change of commit 1634d3615. Back-patch to all supported branches. Discussion: https://postgr.es/m/31473.1573412838@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/29aeda6e4e609b66b6f1c3c73b4def6fb34d90ed Modified Files -------------- src/bin/pg_upgrade/version.c | 334 +++++++++++++------------------------------ 1 file changed, 100 insertions(+), 234 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable @ 2019-11-13 16:36 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-13 16:36 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Handle arrays and ranges in pg_upgrade's test for non-upgradable types. pg_upgrade needs to check whether certain non-upgradable data types appear anywhere on-disk in the source cluster. It knew that it has to check for these types being contained inside domains and composite types; but it somehow overlooked that they could be contained in arrays and ranges, too. Extend the existing recursive-containment query to handle those cases. We probably should have noticed this oversight while working on commit 0ccfc2822 and follow-ups, but we failed to :-(. The whole thing's possibly a bit overdesigned, since we don't really expect that any of these types will appear on disk; but if we're going to the effort of doing a recursive search then it's silly not to cover all the possibilities. While at it, refactor so that we have only one copy of the search logic, not three-and-counting. Also, to keep the branches looking more alike, back-patch the output wording change of commit 1634d3615. Back-patch to all supported branches. Discussion: https://postgr.es/m/31473.1573412838@sss.pgh.pa.us Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1cd57b05ef8bc1ff5862a004ef621884613a4f0d Modified Files -------------- src/bin/pg_upgrade/version.c | 336 +++++++++++++------------------------------ 1 file changed, 101 insertions(+), 235 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable @ 2019-11-13 16:36 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-13 16:36 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Handle arrays and ranges in pg_upgrade's test for non-upgradable types. pg_upgrade needs to check whether certain non-upgradable data types appear anywhere on-disk in the source cluster. It knew that it has to check for these types being contained inside domains and composite types; but it somehow overlooked that they could be contained in arrays and ranges, too. Extend the existing recursive-containment query to handle those cases. We probably should have noticed this oversight while working on commit 0ccfc2822 and follow-ups, but we failed to :-(. The whole thing's possibly a bit overdesigned, since we don't really expect that any of these types will appear on disk; but if we're going to the effort of doing a recursive search then it's silly not to cover all the possibilities. While at it, refactor so that we have only one copy of the search logic, not three-and-counting. Also, to keep the branches looking more alike, back-patch the output wording change of commit 1634d3615. Back-patch to all supported branches. Discussion: https://postgr.es/m/31473.1573412838@sss.pgh.pa.us Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8e4ef328738f7c865736ef36346461e687c9e45c Modified Files -------------- src/bin/pg_upgrade/version.c | 245 +++++++++++++++++-------------------------- 1 file changed, 99 insertions(+), 146 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable @ 2019-11-13 16:36 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-13 16:36 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Handle arrays and ranges in pg_upgrade's test for non-upgradable types. pg_upgrade needs to check whether certain non-upgradable data types appear anywhere on-disk in the source cluster. It knew that it has to check for these types being contained inside domains and composite types; but it somehow overlooked that they could be contained in arrays and ranges, too. Extend the existing recursive-containment query to handle those cases. We probably should have noticed this oversight while working on commit 0ccfc2822 and follow-ups, but we failed to :-(. The whole thing's possibly a bit overdesigned, since we don't really expect that any of these types will appear on disk; but if we're going to the effort of doing a recursive search then it's silly not to cover all the possibilities. While at it, refactor so that we have only one copy of the search logic, not three-and-counting. Also, to keep the branches looking more alike, back-patch the output wording change of commit 1634d3615. Back-patch to all supported branches. Discussion: https://postgr.es/m/31473.1573412838@sss.pgh.pa.us Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c443e3c439273217d1e9a6e1a933ece302aa4ba1 Modified Files -------------- src/bin/pg_upgrade/version.c | 245 +++++++++++++++++-------------------------- 1 file changed, 99 insertions(+), 146 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable @ 2019-11-13 16:36 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-13 16:36 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Handle arrays and ranges in pg_upgrade's test for non-upgradable types. pg_upgrade needs to check whether certain non-upgradable data types appear anywhere on-disk in the source cluster. It knew that it has to check for these types being contained inside domains and composite types; but it somehow overlooked that they could be contained in arrays and ranges, too. Extend the existing recursive-containment query to handle those cases. We probably should have noticed this oversight while working on commit 0ccfc2822 and follow-ups, but we failed to :-(. The whole thing's possibly a bit overdesigned, since we don't really expect that any of these types will appear on disk; but if we're going to the effort of doing a recursive search then it's silly not to cover all the possibilities. While at it, refactor so that we have only one copy of the search logic, not three-and-counting. Also, to keep the branches looking more alike, back-patch the output wording change of commit 1634d3615. Back-patch to all supported branches. Discussion: https://postgr.es/m/31473.1573412838@sss.pgh.pa.us Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f378d4dac4ce80d6772ae4956cd71b10985c481c Modified Files -------------- src/bin/pg_upgrade/version.c | 155 +++++++++++++++++++++++++++---------------- 1 file changed, 98 insertions(+), 57 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable @ 2019-11-13 16:36 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-13 16:36 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Handle arrays and ranges in pg_upgrade's test for non-upgradable types. pg_upgrade needs to check whether certain non-upgradable data types appear anywhere on-disk in the source cluster. It knew that it has to check for these types being contained inside domains and composite types; but it somehow overlooked that they could be contained in arrays and ranges, too. Extend the existing recursive-containment query to handle those cases. We probably should have noticed this oversight while working on commit 0ccfc2822 and follow-ups, but we failed to :-(. The whole thing's possibly a bit overdesigned, since we don't really expect that any of these types will appear on disk; but if we're going to the effort of doing a recursive search then it's silly not to cover all the possibilities. While at it, refactor so that we have only one copy of the search logic, not three-and-counting. Also, to keep the branches looking more alike, back-patch the output wording change of commit 1634d3615. Back-patch to all supported branches. Discussion: https://postgr.es/m/31473.1573412838@sss.pgh.pa.us Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/fb26754af4da8bdb25ca3bc8841714c4101c4107 Modified Files -------------- src/bin/pg_upgrade/version.c | 155 +++++++++++++++++++++++++++---------------- 1 file changed, 98 insertions(+), 57 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable @ 2019-11-13 16:36 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-13 16:36 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Handle arrays and ranges in pg_upgrade's test for non-upgradable types. pg_upgrade needs to check whether certain non-upgradable data types appear anywhere on-disk in the source cluster. It knew that it has to check for these types being contained inside domains and composite types; but it somehow overlooked that they could be contained in arrays and ranges, too. Extend the existing recursive-containment query to handle those cases. We probably should have noticed this oversight while working on commit 0ccfc2822 and follow-ups, but we failed to :-(. The whole thing's possibly a bit overdesigned, since we don't really expect that any of these types will appear on disk; but if we're going to the effort of doing a recursive search then it's silly not to cover all the possibilities. While at it, refactor so that we have only one copy of the search logic, not three-and-counting. Also, to keep the branches looking more alike, back-patch the output wording change of commit 1634d3615. Back-patch to all supported branches. Discussion: https://postgr.es/m/31473.1573412838@sss.pgh.pa.us Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/56c06999d3c3bb056dd3c6eccd085e7c14bd6a38 Modified Files -------------- contrib/pg_upgrade/version.c | 155 +++++++++++++++++++++++++++---------------- 1 file changed, 98 insertions(+), 57 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-11-13 16:36 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-13 16:36 pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2019-11-13 16:36 pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2019-11-13 16:36 pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2019-11-13 16:36 pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2019-11-13 16:36 pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2019-11-13 16:36 pgsql: Handle arrays and ranges in pg_upgrade's test for non-upgradable Tom Lane <tgl@sss.pgh.pa.us> 2019-11-13 16:36 pgsql: Handle arrays and ranges in pg_upgrade's test 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