Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3RfM-0004kZ-QT for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2014 15:46:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y3RfM-0006zW-AL for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2014 15:46:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y3RfK-0006zQ-Vm for pgsql-hackers@postgresql.org; Tue, 23 Dec 2014 15:46:31 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3RfH-0005L4-LY for pgsql-hackers@postgresql.org; Tue, 23 Dec 2014 15:46:29 +0000 Received: from anarazel.de ([84.137.84.189]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MabU1-1YId8H3z5t-00KAZ3; Tue, 23 Dec 2014 16:46:13 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 0940E1009D5; Tue, 23 Dec 2014 16:46:11 +0100 (CET) Date: Tue, 23 Dec 2014 16:46:11 +0100 From: Andres Freund To: Robert Haas Cc: Alvaro Herrera , Tom Lane , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Use a bitmask to represent role attributes Message-ID: <20141223154611.GE32020@awork2.anarazel.de> References: <31247.1419347882@sss.pgh.pa.us> <20141223152630.GM1768@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K0:GnTszQQ9A09qIsc9EyXlMrLCc0NNVULi+P50/eJr9CE4tGQD3HJ sNbwq/rEn5IbguEIxzjrwj/wZR4cHnW7ubolMth6JSLq5igT+pa6ou4Em+ml7hDMwUJJWIg oYu8D+7ysa4D2ZE4KHr8Ww1lWL0QJlkFPdfiDdIEPubLJuA7fgz3/SW64QKmf+A9OBgMQ6j mwW8ifCdGtYD8J9Jwx+FQ== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.6 (--) 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 On 2014-12-23 10:40:15 -0500, Robert Haas wrote: > On Tue, Dec 23, 2014 at 10:26 AM, Alvaro Herrera > wrote: > > Tom Lane wrote: > >> Again, I suppose I should have objected earlier, but I really seriously > >> doubt that this is a good idea. > > > > Ugh. I thought we had a consensus that this was the accepted way > > forward; that's my reading of the old thread, > > http://www.postgresql.org/message-id/flat/20141016133218.GW28859@tamriel.snowman.net#20141016133218.GW28859@tamriel.snowman.net > > > > Breaking clients was considered acceptable, which is why some of these > > functions were introduced. There were some differing opinions; Simon > > for instance suggested the use of an array rather than a bitmask, but > > that would have broken clients all the same. > > > > If there's strong opposition to this whole line of development, I can > > revert. Anyone else wants to give an opinion? > > I would have preferred (and I believe argued for) keeping the existing > catalog representation for existing attributes and using a bitmask for > new ones, to avoid breaking client code. But I am not sure if that's > actually the best decision. I personally think in this case the clear break is slightly better than having different styles of representation around for a long while. > I find Tom's concern about needing more > than 64 attributes to be ill-founded; I can't really see that > happening on any timescale that matters. I personally would prefer a 'custom' type to represent the permissions. Internally that could very well be current bitmask, but the external representation could be more complex (i.e. some textual representation). That'd make it easy to make the representation wider/more complex if needed. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers