From: Keith Fiske <keith@omniti.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6264: Superuser does not have inherent Replication permission
Date: Fri, 21 Oct 2011 21:54:56 GMT
Message-ID: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 6264
Logged by: Keith Fiske
Email address: keith@omniti.com
PostgreSQL version: 9.1.1
Operating system: Debian
Description: Superuser does not have inherent Replication permission
Details:
Was testing out an upgrade from 9.0.4 to 9.1.1 and ran across either some
lack of clarity in the documentation or a bug in the superuser privilege.
I had a streaming replication setup and after the upgrade and setting up the
new slave, the slave would no longer connect to the master for SR. Looking
into this more, I saw that 9.1 has a new Replication permission to allow
non-superusers the ability to be replication users.
The documentation says replication is inherent to a superuser. After testing
several times, I can assure you it is not. The old replication user from
9.0.4 which was carried through the upgrade kept its superuser privileges,
but was unable to be used for replication until I explicitly granted it the
Replication permission.
Brand new roles created initially as superusers are explicitly given the
separate replication permission. 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.
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: keith@omniti.com
Subject: Re: BUG #6264: Superuser does not have inherent Replication permission
In-Reply-To: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org>
References: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org>
* 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