pgsql: Skip invalid database pg_upgrade test on obsolete servers

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Skip invalid database pg_upgrade test on obsolete servers
Дата
Msg-id E1s26cM-000wvU-Kq@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/56455ebd354e35ebd9d17455759abda70f9edcea

Modified Files
--------------
src/bin/pg_upgrade/t/002_pg_upgrade.pl | 38 ++++++++++++++++++++++------------
1 file changed, 25 insertions(+), 13 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: pgsql: Disable run condition optimization for some WindowFuncs
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: doc: Fix description of configure --with-icu option