Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZozMv-0002HU-RQ for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Oct 2015 19:48:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZozMv-0007W2-Da for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Oct 2015 19:48:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZozLZ-0004be-9N for pgsql-hackers@postgreSQL.org; Wed, 21 Oct 2015 19:46:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZozLV-0004Jy-VJ for pgsql-hackers@postgreSQL.org; Wed, 21 Oct 2015 19:46:52 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t9LJkfj0014882; Wed, 21 Oct 2015 15:46:42 -0400 From: Tom Lane To: Joe Conway cc: Andres Freund , justin.catterson@sofiebio.com, pgsql-hackers@postgreSQL.org Subject: Re: [BUGS] BUG #13694: Row Level Security by-passed with CREATEUSER permission In-reply-to: <5627D933.8000903@joeconway.com> References: <20151021164233.3017.94954@wrigleys.postgresql.org> <5627D3D9.8080409@joeconway.com> <22555.1445451464@sss.pgh.pa.us> <20151021182639.GE32218@awork2.anarazel.de> <5627D933.8000903@joeconway.com> Comments: In-reply-to Joe Conway message dated "Wed, 21 Oct 2015 11:28:03 -0700" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <46853.1445456762.0@sss.pgh.pa.us> Date: Wed, 21 Oct 2015 12:46:41 -0700 Message-ID: <46861.1445456801@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <46853.1445456762.1@sss.pgh.pa.us> Joe Conway writes: > On 10/21/2015 11:26 AM, Andres Freund wrote: >> On 2015-10-21 11:17:44 -0700, Tom Lane wrote: >>> I wonder if it's time yet to remove those keywords. We've had the >>> SUPERUSER spelling since 8.1, and this report should remind us that >>> people get confused by the old spellings. >> +1 for doing that in 9.6. > 1++ Attached patch rips out CREATEUSER and NOCREATEUSER options lock, stock, and barrel. Another possibility is to change them to actually mean CREATEROLE and NOCREATEROLE. I think probably a clean break is better though. regards, tom lane ------- =_aaaaaaaaaa0 Content-Type: text/x-patch; name="remove-obsolete-createrole-options.patch"; charset="us-ascii" Content-ID: <46853.1445456762.2@sss.pgh.pa.us> Content-Description: remove-obsolete-createrole-options.patch Content-Transfer-Encoding: quoted-printable diff --git a/doc/src/sgml/ref/alter_role.sgml b/doc/src/sgml/ref/alter_role= .sgml index 7638817b830a1eb73ab59174591fe6eaf3378453..da36ad96967e7c842c28f5787b5= ec0dc48ec5a60 100644 *** a/doc/src/sgml/ref/alter_role.sgml --- b/doc/src/sgml/ref/alter_role.sgml *************** ALTER ROLE NOCREATEDB CREATEROLE NOCREATEROLE - CREATEUSER - NOCREATEUSER INHERIT NOINHERIT LOGIN --- 159,164 ---- diff --git a/doc/src/sgml/ref/alter_user.sgml b/doc/src/sgml/ref/alter_user= .sgml index 0ffaa16da2fc75fcd1121dcde627837d6a8e9166..84a0c52191fc6c82687ef49df99= ac30fdbfd8f1d 100644 *** a/doc/src/sgml/ref/alter_user.sgml --- b/doc/src/sgml/ref/alter_user.sgml *************** ALTER USER password' --- 28,33 ---- diff --git a/doc/src/sgml/ref/create_role.sgml b/doc/src/sgml/ref/create_ro= le.sgml index 240c21ce85fcd1bd4cddd4bb6af109ef319f8175..38cd4c83696053f5b70fc514e9b= 3939cb842fb3a 100644 *** a/doc/src/sgml/ref/create_role.sgml --- b/doc/src/sgml/ref/create_role.sgml *************** CREATE ROLE =20=20 - CREATEUSER - NOCREATEUSER - - - These clauses are an obsolete, but still accepted, spelling of - SUPERUSER and NOSUPERUSER. - Note that they are not equivalent to - CREATEROLE as one might naively expect! - - - -=20 - INHERIT NOINHERIT --- 124,129 ---- diff --git a/doc/src/sgml/ref/create_user.sgml b/doc/src/sgml/ref/create_us= er.sgml index 065999c85a4df610908c1e762d7bc3435406986b..6c690b36df561573f234de073e4= ddbb10e6e9ec7 100644 *** a/doc/src/sgml/ref/create_user.sgml --- b/doc/src/sgml/ref/create_user.sgml *************** CREATE USER