Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nws1W-0002kM-4K for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jun 2022 21:06:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nws1U-0003rd-Rh for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jun 2022 21:06:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nws1U-0003rT-IL for pgsql-hackers@lists.postgresql.org; Thu, 02 Jun 2022 21:06:28 +0000 Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nws1R-00048b-N0 for pgsql-hackers@postgresql.org; Thu, 02 Jun 2022 21:06:27 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id D6A14FF805; Thu, 2 Jun 2022 21:06:19 +0000 (UTC) Message-ID: <57b75c75-7a3e-45f6-fb45-814280197db6@dunslane.net> Date: Thu, 2 Jun 2022 17:06:18 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: replacing role-level NOINHERIT with a grant-level option Content-Language: en-US To: Robert Haas , Tom Lane Cc: Joe Conway , "Bossart, Nathan" , Stephen Frost , PostgreSQL-development References: <20211108204449.GO20998@tamriel.snowman.net> <5F9388A2-35EA-4DAA-BE05-68D55EEA6DC3@amazon.com> <0ED10807-9E7F-4BB5-9473-4668EE68AE2D@amazon.com> <4117557.1641329799@sss.pgh.pa.us> <730520.1644168290@sss.pgh.pa.us> <80af9ba7-ec24-9134-8fd9-00bf13f5c494@joeconway.com> <1066202.1654190251@sss.pgh.pa.us> From: Andrew Dunstan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-06-02 Th 14:06, Robert Haas wrote: > On Thu, Jun 2, 2022 at 1:17 PM Tom Lane wrote: >> Point 2 would cause every existing pg_dumpall script to fail, which >> seems like kind of a large gotcha. Less unpleasant alternatives >> could include >> >> * Continue to accept the syntax, but ignore it, maybe with a WARNING >> for the alternative that doesn't correspond to the new behavior. >> >> * Keep pg_authid.rolinherit, and have it act as supplying the default >> behavior for subsequent GRANTs to that role. > Of those two alternatives, I would certainly prefer the first, because > the second doesn't actually get rid of the ugly wart. It just adds a > non-ugly thing that we have to maintain along with the ugly thing, > apparently in perpetuity. If we do the first of these, we can probably > remove the obsolete syntax at some point in the distant future, and in > the meantime, we don't have to figure out how it's supposed to > interact with existing features or new ones, since the actual feature > is already removed. > +1 cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com