Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 58B64D1CB41 for ; Sat, 14 Jan 2012 20:27:57 -0400 (AST) Received: from mail-qw0-f46.google.com ([209.85.216.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RmDwu-0001ZT-6d for pgsql-bugs@postgresql.org; Sun, 15 Jan 2012 00:27:56 +0000 Received: by qadc26 with SMTP id c26so1340708qad.19 for ; Sat, 14 Jan 2012 16:27:37 -0800 (PST) Received: by 10.224.31.202 with SMTP id z10mr8184966qac.96.1326587257449; Sat, 14 Jan 2012 16:27:37 -0800 (PST) Received: from tornado.leadboat.com (ip68-230-222-48.rd.hr.cox.net. [68.230.222.48]) by mx.google.com with ESMTPS id gh3sm4865761qab.2.2012.01.14.16.27.35 (version=SSLv3 cipher=OTHER); Sat, 14 Jan 2012 16:27:36 -0800 (PST) Date: Sat, 14 Jan 2012 19:27:34 -0500 From: Noah Misch To: Heikki Linnakangas 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 Message-ID: <20120115002734.GA21684@tornado.leadboat.com> References: <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> <4F11AE91.4020407@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F11AE91.4020407@enterprisedb.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201201/118 X-Sequence-Number: 32185 On Sat, Jan 14, 2012 at 06:34:25PM +0200, Heikki Linnakangas wrote: > 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. Thanks. > 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. Not that I noted. The former docs describe the 9.1 behavior thoroughly.