Fix recently added incorrect assertion
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +2 −3 |
| src/test/recovery/t/020_archive_status.pl | modified | +14 −0 |
Discussion
- Crash after a call to pg_backup_start() 12 messages · 2022-10-21 → 2022-10-25