Move permissions check from do_pg_start_backup to pg_start_backup And the same for do_pg_stop_backup. The code in do_pg_* is not allowed to access the catalogs. For manual base backups, the permissions check can be handled in the calling function, and for streaming base backups only users with the required permissions can get past the authentication step in the first place.
Reported by Antonin Houska, diagnosed by Andres Freund Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/91c2755fcbd701067702cc889deeddddc6ff7a92 Modified Files -------------- src/backend/access/transam/xlog.c | 16 ++++++---------- src/backend/access/transam/xlogfuncs.c | 10 ++++++++++ 2 files changed, 16 insertions(+), 10 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
