pgsql: Fix recently added incorrect assertion

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix recently added incorrect assertion
Дата
Msg-id E1omuKU-000aIV-DU@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix recently added incorrect assertion

Commit df3737a651f4 added an incorrect assertion about the preconditions
for invoking the backup cleanup callback: it misfires at session end in
case a backup completes successfully.  Fix it, using coding from Michaël
Paquier.  Also add some tests for the various cases.

Reported by Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20221021.161038.1277961198945653224.horikyota.ntt@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8328a15f8f95cad3fa99bbab551cade0a8403708

Modified Files
--------------
src/backend/access/transam/xlog.c         |  5 ++---
src/test/recovery/t/020_archive_status.pl | 14 ++++++++++++++
2 files changed, 16 insertions(+), 3 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Improve coverage of ruleutils.c for SQLValueFunctions
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Update some comments that should've covered MERGE