postgresql/src/bin
Michael Paquier fae5f08e17 Move into separate file all the SQL queries used in pg_upgrade tests
The existing pg_upgrade/test.sh and the buildfarm code have been holding
the same set of SQL queries when doing cross-version upgrade tests to
adapt the objects created by the regression tests before the upgrade
(mostly, incompatible or non-existing objects need to be dropped from
the origin, perhaps re-created).

This moves all those SQL queries into a new, separate, file with a set
of \if clauses to handle the version checks depending on the old version
of the cluster to-be-upgraded.

The long-term plan is to make the buildfarm code re-use this new SQL
file, so as committers are able to fix any compatibility issues in the
tests of pg_upgrade with a refresh of the core code, without having to
poke at the buildfarm client.  Note that this is only able to handle the
main regression test suite, and that nothing is done yet for contrib
modules yet (these have more issues like their database names).

A backpatch down to 10 is done, adapting the version checks as this
script needs to be only backward-compatible, so as it becomes possible
to clean up a maximum amount of code within the buildfarm client.

Author: Justin Pryzby, Michael Paquier
Discussion: https://postgr.es/m/20201206180248.GI24052@telsasoft.com
Backpatch-through: 10
2021-12-02 10:31:34 +09:00
..
initdb Translation updates 2021-11-08 10:08:56 +01:00
pg_archivecleanup Translation updates 2021-11-08 10:08:56 +01:00
pg_basebackup pg_receivewal, pg_recvlogical: allow canceling initial password prompt. 2021-11-21 14:13:35 -05:00
pg_checksums Translation updates 2021-11-08 10:08:56 +01:00
pg_config Translation updates 2021-11-08 10:08:56 +01:00
pg_controldata Translation updates 2021-11-08 10:08:56 +01:00
pg_ctl Translation updates 2021-11-08 10:08:56 +01:00
pg_dump Adjust pg_dump's priority ordering for casts. 2021-11-22 17:16:29 -05:00
pg_resetwal Translation updates 2021-11-08 10:08:56 +01:00
pg_rewind Translation updates 2021-11-08 10:08:56 +01:00
pg_test_fsync Translation updates 2021-11-08 10:08:56 +01:00
pg_test_timing Translation updates 2021-11-08 10:08:56 +01:00
pg_upgrade Move into separate file all the SQL queries used in pg_upgrade tests 2021-12-02 10:31:34 +09:00
pg_verifybackup Translation updates 2021-11-08 10:08:56 +01:00
pg_waldump Translation updates 2021-11-08 10:08:56 +01:00
pgbench pgbench: Fix handling of socket errors during benchmark. 2021-09-29 21:49:36 +09:00
pgevent Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
psql Make psql's \password default to CURRENT_USER, not PQuser(conn). 2021-11-12 14:55:32 -05:00
scripts Translation updates 2021-11-08 10:08:56 +01:00
Makefile Rename pg_validatebackup to pg_verifybackup. 2020-04-12 11:26:05 -04:00