Re: Streaming replication as a separate permissions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Streaming replication as a separate permissions
Date
Msg-id 6072.1293486129@sss.pgh.pa.us
Whole thread Raw
In response to Re: Streaming replication as a separate permissions  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Streaming replication as a separate permissions
List pgsql-hackers
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.

BTW, you forgot pg_dumpall support.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Archlinux, ossp-uuid
Next
From: Peter Eisentraut
Date:
Subject: 9.1alpha3 release notes help