pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Use a bitmask to represent role attributes
Date: Tue, 23 Dec 2014 11:22:09 -0500
Message-ID: <20141223162209.GH3062@tamriel.snowman.net> (raw)
In-Reply-To: <32297.1419350852@sss.pgh.pa.us>
References: <E1Y3PQG-0006Hc-Ff@gemulon.postgresql.org>
<31247.1419347882@sss.pgh.pa.us>
<20141223152630.GM1768@alvh.no-ip.org>
<31639.1419349001@sss.pgh.pa.us>
<20141223155500.GE3062@tamriel.snowman.net>
<32297.1419350852@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Stephen Frost <sfrost@snowman.net> 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.
I suppose. I didn't consider it to be a terribly drastic change but
rather simply using a better representation for a mostly-internal bit of
data. It also lended itself pretty nicely to maniuplation (at least,
imv, the code is a lot cleaner with the bitmask, but it's not a huge
deal). Guess I had been expecting concerns to be raised around adding
many more bytes where there wouldn't have been.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
view thread (27+ messages) latest in thread
Message-ID: <20141223162209.GH3062@tamriel.snowman.net> Permalink: ../20141223162209.GH3062@tamriel.snowman.net/ Also on: postgresql.org/message-id/20141223162209.GH3062@tamriel.snowman.net ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-committers@postgresql.org Cc: sfrost@snowman.net, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Use a bitmask to represent role attributes In-Reply-To: <20141223162209.GH3062@tamriel.snowman.net> References: <E1Y3PQG-0006Hc-Ff@gemulon.postgresql.org> <31247.1419347882@sss.pgh.pa.us> <20141223152630.GM1768@alvh.no-ip.org> <31639.1419349001@sss.pgh.pa.us> <20141223155500.GE3062@tamriel.snowman.net> <32297.1419350852@sss.pgh.pa.us> <20141223162209.GH3062@tamriel.snowman.net> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox