pgsql: Fix server crash bug in 'server' backup target.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix server crash bug in 'server' backup target.
Date: 2022-02-02 18:59:20
Message-ID: E1nFKqe-0005qo-FY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8e2b6d45a033287da7c8f63062129ea02d86d831

Modified Files
--------------
src/backend/replication/basebackup_server.c | 3 +++
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 13 ++++++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-02-02 21:09:14 pgsql: Improve psql tab-completion tests.
Previous Message Peter Eisentraut 2022-02-02 11:03:51 pgsql: Some cleanup for change of collate and ctype fields to type text