Re: Streaming replication as a separate permissions

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Streaming replication as a separate permissions
Дата
Msg-id AANLkTimUMHSGMnz+CUjmQbVhQryGweXRs6zEVekbONe6@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Streaming replication as a separate permissions  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Streaming replication as a separate permissions  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On Mon, Dec 27, 2010 at 22:53, Magnus Hagander <magnus@hagander.net> wrote:
> On Mon, Dec 27, 2010 at 22:42, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Magnus Hagander <magnus@hagander.net> writes:
>>> Updated patch, still pending docs, but otherwise updated: allow
>>> start/stop backup, make sure only superuser can turn on/off the flag,
>>> include in system views, show properly in psql.
>>
>> I'd suggest avoiding creating the static cache variable
>> AuthenticatedUserIsReplicationRole.  This can't possibly be sufficiently
>> interesting from a performance point of view to justify the risks
>> associated with stale cache values.  Just look up the pg_authid syscache
>> entry when needed, ie, treat it more like rolcreaterole than rolsuper.
>
> Sure, I catually had it that way first. But doing it this way was less
> code. But I realize I should've revisited that decision when I made
> the change to pg_start_backup and pg_stop_backup - before that the
> checks would only happen during a very short window of time at the
> start of the connection, but now it can happen later..
>
>
>> BTW, you forgot pg_dumpall support.
>
> Gah. I knew that, but somehow dropped it from my TODO. Thanks for the reminder!

Ok, here's an updated patch that does both these and includes
documentation and regression test changes. With that, I think we're
good to go.


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

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: SQL/MED - core functionality
Следующее
От: Robert Haas
Дата:
Сообщение: Re: estimating # of distinct values