Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 94D06B5DC0C for ; Thu, 27 Oct 2011 15:19:01 -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 90912-05 for ; Thu, 27 Oct 2011 18:18:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 35193B5DBF0 for ; Thu, 27 Oct 2011 15:18:55 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9RIIrVC002309; Thu, 27 Oct 2011 14:18:53 -0400 (EDT) To: Robert Haas cc: Magnus Hagander , Keith Fiske , pgsql-bugs@postgresql.org Subject: Re: BUG #6264: Superuser does not have inherent Replication permission In-reply-to: References: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org> <9214.1319298574@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 27 Oct 2011 13:45:34 -0400" Date: Thu, 27 Oct 2011 14:18:53 -0400 Message-ID: <2308.1319739533@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.684 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 201110/265 X-Sequence-Number: 31535 Robert Haas writes: > ... If we do decide to change the > behavior, we'd better carefully document that if you want to make > someone a superuser without giving them replication privileges (or > revoke their superuser status without revoking replication > privileges), you need to specify both ALTER TABLE options. You'd also have to be careful about processing-order dependencies; consider ALTER USER joe NOREPLICATION SUPERUSER; which would do the wrong thing with a naive implementation. > All in all I'm somewhat inclined to think we should just patch the > docs. 9.1 hasn't been out for very long, so maybe expectations aren't > too settled yet, but changing security-critical behavior in back > branches doesn't seem like a wonderful idea; and I think I mildly > prefer the current semantics to the proposed ones. +1 regards, tom lane