Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3RW1-0004QC-3w for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2014 15:36:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y3RW0-0002QB-L3 for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2014 15:36:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y3RVz-0002Q5-F6 for pgsql-hackers@postgresql.org; Tue, 23 Dec 2014 15:36:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y3RVv-0000jE-MR for pgsql-hackers@postgresql.org; Tue, 23 Dec 2014 15:36:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sBNFafj4031640; Tue, 23 Dec 2014 10:36:41 -0500 From: Tom Lane To: Alvaro Herrera cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Use a bitmask to represent role attributes In-reply-to: <20141223152630.GM1768@alvh.no-ip.org> References: <31247.1419347882@sss.pgh.pa.us> <20141223152630.GM1768@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Tue, 23 Dec 2014 12:26:30 -0300" Date: Tue, 23 Dec 2014 10:36:41 -0500 Message-ID: <31639.1419349001@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 Alvaro Herrera writes: > 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 I was aware that we were thinking of introducing a bunch more role attributes, but I'm wondering what's the rationale for assuming that (a) they'll all be booleans, and (b) there will never, ever, be more than 64 of them. The argument that lots of boolean columns won't scale nicely doesn't seem to lead to the conclusion that a fixed-size bitmap is better. I'd have gone with just adding more bool columns as needed. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers