Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3Rzr-0005YZ-BV for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2014 16:07:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y3Rzq-0002DH-On for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2014 16:07:42 +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 1Y3Rzp-0002DA-76 for pgsql-hackers@postgresql.org; Tue, 23 Dec 2014 16:07:41 +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 1Y3Rzl-0001KZ-Qp for pgsql-hackers@postgresql.org; Tue, 23 Dec 2014 16:07:40 +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 sBNG7WaV032298; Tue, 23 Dec 2014 11:07:32 -0500 From: Tom Lane To: Stephen Frost cc: Alvaro Herrera , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Use a bitmask to represent role attributes In-reply-to: <20141223155500.GE3062@tamriel.snowman.net> References: <31247.1419347882@sss.pgh.pa.us> <20141223152630.GM1768@alvh.no-ip.org> <31639.1419349001@sss.pgh.pa.us> <20141223155500.GE3062@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Tue, 23 Dec 2014 10:55:01 -0500" Date: Tue, 23 Dec 2014 11:07:32 -0500 Message-ID: <32297.1419350852@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 Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> I'd have gone with just adding more bool columns as needed. > I don't think I was the only one concerned that adding a bunch of new > columns would bloat the size of pg_authid and the C structure behind it, > but I'm not remembering offhand who else considered it. Lessee, as of 9.4 pg_authid required 76 bytes per row, plus row header overhead that'd have probably pushed it to 104 bytes per row (more if you had non-null rolpassword or rolvaliduntil). If we add as many as 20 more booleans we'd be at 124 bytes per row, whereas with this approach we'd have, well, 104 bytes per row. I'm not seeing much benefit to justify such a drastic change of approach. 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