Streaming replication as a separate permissions

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Streaming replication as a separate permissions
Дата
Msg-id AANLkTimAFRqsaRkE5-D-7X1fxaoa+YHPdjewdpPht3GY@mail.gmail.com
обсуждение исходный текст
Ответы Re: Streaming replication as a separate permissions  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Streaming replication as a separate permissions  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Here's a patch that changes walsender to require a special privilege
for replication instead of relying on superuser permissions. We
discussed this back before 9.0 was finalized, but IIRC we ran out of
time. The motivation being that you really want to use superuser as
little as possible - and since being a replication slave is a read
only role, it shouldn't require the maximum permission available in
the system.

Obviously the patch needs docs and some system views updates, which I
will add later. But I wanted to post what I have so far for a quick
review to confirm whether I'm on the right track or not... How it
works should be rather obvious - adds a "WITH
REPLICATION/NOREPLICATION" to the create and alter role commands, and
then check this when a connection attempts to start the walsender.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

Вложения

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: recapitulation: FOREACH-IN-ARRAY
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: pl/python improvements