Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6CFD0B5DBF9 for ; Fri, 21 Oct 2011 18:54:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 31557-07 for ; Fri, 21 Oct 2011 21:54:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id BAAF1B5DBCE for ; Fri, 21 Oct 2011 18:54:57 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p9LLsuG5077391 for ; Fri, 21 Oct 2011 21:54:56 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p9LLsun5077390; Fri, 21 Oct 2011 21:54:56 GMT (envelope-from www) Date: Fri, 21 Oct 2011 21:54:56 GMT Message-Id: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6264: Superuser does not have inherent Replication permission From: "Keith Fiske" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201110/212 X-Sequence-Number: 31482 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.