From: Tom Lane <tgl@sss.pgh.pa.us>
To: Keith Fiske <keith@omniti.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6264: Superuser does not have inherent Replication permission
Date: Sat, 22 Oct 2011 11:49:34 -0400
Message-ID: <9214.1319298574@sss.pgh.pa.us> (raw)
In-Reply-To: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org>
References: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org>
"Keith Fiske" <keith@omniti.com> writes:
> The documentation says replication is inherent to a superuser.
What it actually says is that superusers get the replication privilege
by default --- but you can create a superuser without that. If you
see a place that says something different, please point it out
specifically so we can improve it.
> After testing
> several times, I can assure you it is not.
Please show your test case. It looks to me like it works as expected:
regression=# create user foo superuser;
CREATE ROLE
regression=# create user foo2 superuser noreplication;
CREATE ROLE
regression=# select rolname,rolsuper,rolreplication from pg_authid ;
rolname | rolsuper | rolreplication
----------+----------+----------------
postgres | t | t
foo | t | t
foo2 | t | f
(3 rows)
> If you create a user as a NONsuperuser,
> then later ALTER them to be one, they will NOT have the replication
> permission and cannot be used as a replication user until you explicitly
> grant that permission.
That doesn't sound to me like a bug. These flags are independent, we
just provide a certain default at role creation time.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, keith@omniti.com
Subject: Re: BUG #6264: Superuser does not have inherent Replication permission
In-Reply-To: <9214.1319298574@sss.pgh.pa.us>
References: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org> <9214.1319298574@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox