aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2014-01-07 17:47:52 +0100
committerMagnus Hagander <magnus@hagander.net>2014-01-07 18:00:36 +0100
commit026a91f86c1968da2120068d1ec453f412a1a046 (patch)
tree471f4a647e4ea736b685d04cced922b849abac38 /src/backend/tcop/postgres.c
parent773e4d5e4dc48dc2c14f31f5d71d9dbf491fd6f5 (diff)
downloadpostgresql-026a91f86c1968da2120068d1ec453f412a1a046.tar.gz
postgresql-026a91f86c1968da2120068d1ec453f412a1a046.zip
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
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions