Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 94E59B5DC60 for ; Fri, 28 Oct 2011 12:42:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 11350-10 for ; Fri, 28 Oct 2011 15:42:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by mail.postgresql.org (Postfix) with ESMTP id 4824FB5DC5F for ; Fri, 28 Oct 2011 12:42:40 -0300 (ADT) Received: by qyk4 with SMTP id 4so2261166qyk.19 for ; Fri, 28 Oct 2011 08:42:39 -0700 (PDT) Received: by 10.229.72.164 with SMTP id m36mr854606qcj.39.1319816559525; Fri, 28 Oct 2011 08:42:39 -0700 (PDT) Received: from tornado.leadboat.com (pool-108-26-106-158.nrflva.east.verizon.net. [108.26.106.158]) by mx.google.com with ESMTPS id hf9sm14843009qab.16.2011.10.28.08.42.38 (version=SSLv3 cipher=OTHER); Fri, 28 Oct 2011 08:42:38 -0700 (PDT) Date: Fri, 28 Oct 2011 11:42:38 -0400 From: Noah Misch To: Robert Haas Cc: Tom Lane , Magnus Hagander , Keith Fiske , pgsql-bugs@postgresql.org Subject: Re: Re: BUG #6264: Superuser does not have inherent Replication permission Message-ID: <20111028154238.GC15931@tornado.leadboat.com> References: <201110212154.p9LLsun5077390@wwwmaster.postgresql.org> <9214.1319298574@sss.pgh.pa.us> <20111027210132.GA8856@tornado.leadboat.com> <7162.1319753721@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H8ygTp4AXg6deix2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.18 tagged_above=-5 required=5 tests=BAYES_00=-1.9, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 201110/286 X-Sequence-Number: 31556 --H8ygTp4AXg6deix2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 prece= dent. ?We > >> currently have three paradigms for applying access control to superuse= rs: > > > >> 1. Settings that affect superusers and regular users identically. ?The= se include > >> ALTER ROLE ... LOGIN | VALID UNTIL. > > > >> 2. Rights that superusers possess implicitly and irrevocably; the actu= al 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 CREAT= E ROLE > >> ... SUPERUSER implies CREATE ROLE ... SUPERUSER REPLICATION. > > > >> I think we should merge #3 into #2; nothing about the REPLICATION sett= ing > >> 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. >=20 > (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. --H8ygTp4AXg6deix2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFOqs1uqyFPzO7DkOURAt38AJ49gd9q5FUQBy7ag6ifKeqNpbKXawCfft58 m0QJTYTMiWdj7dshSb+IID0= =zC6J -----END PGP SIGNATURE----- --H8ygTp4AXg6deix2--