Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 79DB81A13213 for ; Sat, 14 Jan 2012 12:34:49 -0400 (AST) Received: from exprod7og123.obsmtp.com ([64.18.2.24]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rm6Z2-0006NS-Qb for pgsql-bugs@postgresql.org; Sat, 14 Jan 2012 16:34:49 +0000 Received: from mail-ee0-f49.google.com ([74.125.83.49]) (using TLSv1) by exprod7ob123.postini.com ([64.18.6.12]) with SMTP ID DSNKTxGulcChIAmp7vNZdvPnd3/W7dyaSueD@postini.com; Sat, 14 Jan 2012 08:34:44 PST Received: by eeke50 with SMTP id e50so548404eek.22 for ; Sat, 14 Jan 2012 08:34:28 -0800 (PST) Received: by 10.213.7.196 with SMTP id e4mr1583223ebe.54.1326558868554; Sat, 14 Jan 2012 08:34:28 -0800 (PST) Received: from [192.168.1.100] (dsl-hkibrasgw2-ff6cc300-200.dhcp.inet.fi. [88.195.108.200]) by mx.google.com with ESMTPS id e12sm45849370eea.5.2012.01.14.08.34.26 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 Jan 2012 08:34:27 -0800 (PST) Message-ID: <4F11AE91.4020407@enterprisedb.com> Date: Sat, 14 Jan 2012 18:34:25 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120104 Icedove/8.0 MIME-Version: 1.0 To: Noah Misch CC: Robert Haas , Tom Lane , Magnus Hagander , Keith Fiske , pgsql-bugs@postgresql.org Subject: Re: Re: BUG #6264: Superuser does not have inherent Replication permission References: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org> <9214.1319298574@sss.pgh.pa.us> <20111027210132.GA8856@tornado.leadboat.com> <7162.1319753721@sss.pgh.pa.us> <20111028154238.GC15931@tornado.leadboat.com> <20120102194635.GD23436@tornado.leadboat.com> In-Reply-To: <20120102194635.GD23436@tornado.leadboat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201201/117 X-Sequence-Number: 32184 On 02.01.2012 21:46, Noah Misch wrote: > On Fri, Oct 28, 2011 at 11:42:38AM -0400, Noah Misch wrote: >> On Fri, Oct 28, 2011 at 09:32:30AM -0400, Robert Haas wrote: >>> On Thu, Oct 27, 2011 at 6:15 PM, Tom Lane wrote: >>>> Noah Misch writes: >>>>> Let's look at the behavior of DDL-exposed access constraints for precedent. ?We >>>>> currently have three paradigms for applying access control to superusers: >>>> >>>>> 1. Settings that affect superusers and regular users identically. ?These include >>>>> ALTER ROLE ... LOGIN | VALID UNTIL. >>>> >>>>> 2. Rights that superusers possess implicitly and irrevocably; the actual setting >>>>> recorded in pg_authid or elsewhere has no effect. ?These include GRANT ... ON >>>>> TABLE and ALTER ROLE ... CREATEDB | CREATEROLE. >>>> >>>>> 3. ALTER ROLE ... REPLICATION is very similar to #1, except that CREATE ROLE >>>>> ... SUPERUSER implies CREATE ROLE ... SUPERUSER REPLICATION. >>>> >>>>> I think we should merge #3 into #2; nothing about the REPLICATION setting >>>>> justifies a distinct paradigm. >>>> >>>> Yeah, there's much to be said for that. ?I thought the notion of a >>>> privilege that superusers might not have was pretty bogus to start with. >> >>> That seems fine for 9.2, but I am still not in favor of changing the >>> behavior in back branches. This is not such a confusing behavior that >>> we can't document our way out of it. >>> >>> (Hey, if SELECT .. ORDER BY .. FOR UPDATE can return rows out of order >>> and we can document our way out of that, this is small potatoes by >>> comparison.) >> >> Quite so. Let's do it that way. > > Patch attached. Thanks, committed to master. Was there something that still needed to be done for the 9.1 docs? I'm not sure what the conclusion on that was in the discussions back in October. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com