Fix server crash bug in 'server' backup target.
Robert Haas <rhaas@postgresql.org>
Fix server crash bug in 'server' backup target. When this code executed as superuser it appeared to work because no system catalog lookups happened, but otherwise it crashes because there is no transaction environment. Fix that. Report and code change by me. Test case by Dagfinn Ilmari Mannsåker. Discussion: http://postgr.es/m/CA+TgmobiKLXne-2AVzYyWRiO8=rChBQ=7ywoxp=2SmcFw=oDDw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/basebackup_server.c | modified | +3 −0 |
| src/bin/pg_basebackup/t/010_pg_basebackup.pl | modified | +12 −1 |
Discussion
- Server-side base backup: why superuser, not pg_write_server_files? 21 messages · 2022-01-28 → 2022-02-03