pgsql: Move permissions check from do_pg_start_backup to pg_start_backu

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Move permissions check from do_pg_start_backup to pg_start_backu
Дата
Msg-id E1W0a5c-0005z3-Dk@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/026a91f86c1968da2120068d1ec453f412a1a046

Modified Files
--------------
src/backend/access/transam/xlog.c |   26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Avoid including tablespaces inside PGDATA twice in base backups
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Move permissions check from do_pg_start_backup to pg_start_backu