postgresql/src/bin/pg_upgrade
Alvaro Herrera 56455ebd35
Skip invalid database pg_upgrade test on obsolete servers
When testing pg_upgrade against an old server, ignore failures on the
check to upgrade invalid databases.  This is necessary because old
servers don't know to raise the appropriate error of the database being
invalid.

This change causes no reduction in coverage, because such old versions
don't know to mark databases invalid when a drop is interrupted; but
testing against such old servers is useful in some circumstances.

Backpatch to 16, where it cherry-picks with minimal conflicts.

On 16, perltidy 20230309 chooses to change an unrelated line.  I let it
do that because that's the version we document as preferred for that
branch, even though it would make other changes to many other files in
the tree.

Discussion: https://postgr.es/m/202404181539.lh42llaesnv3@alvherre.pgsql
2024-05-01 11:50:05 +02:00
..
po Update copyright for 2024 2024-01-03 20:49:05 -05:00
t Skip invalid database pg_upgrade test on obsolete servers 2024-05-01 11:50:05 +02:00
.gitignore Re-add locally-generated files in pg_upgrade's .gitignore and Makefile 2022-06-15 15:36:16 +09:00
IMPLEMENTATION Improve some wording in pg_upgrade/IMPLEMENTATION 2023-10-11 13:54:33 +09:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
TESTING Add --copy-file-range option to pg_upgrade. 2024-03-06 12:01:01 +13:00
check.c pg_upgrade: Fix typo in message 2024-04-04 12:58:57 +02:00
controldata.c Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
dump.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
exec.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
file.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
function.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
info.c Track invalidation_reason in pg_replication_slots. 2024-03-22 13:52:05 +05:30
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls.mk Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
option.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
parallel.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
pg_upgrade.c Invent --transaction-size option for pg_restore. 2024-04-01 16:46:24 -04:00
pg_upgrade.h pg_upgrade: run all data type checks per connection 2024-03-19 13:32:50 +01:00
relfilenumber.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
server.c Rework how logirep launchers are stopped during pg_upgrade 2024-01-12 08:23:07 +09:00
tablespace.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
util.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
version.c pg_upgrade: run all data type checks per connection 2024-03-19 13:32:50 +01:00