Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3UQz-0002s9-B8 for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2014 18:43:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y3UQy-0007r7-SH for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2014 18:43:52 +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 1Y3UQx-0007r1-FQ for pgsql-hackers@postgresql.org; Tue, 23 Dec 2014 18:43:51 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3UQu-0000CU-6h for pgsql-hackers@postgresql.org; Tue, 23 Dec 2014 18:43:49 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 4C4455F9CD; Tue, 23 Dec 2014 13:43:47 -0500 (EST) Date: Tue, 23 Dec 2014 13:43:47 -0500 From: Stephen Frost To: Bruce Momjian Cc: Tom Lane , Robert Haas , Alvaro Herrera , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Use a bitmask to represent role attributes Message-ID: <20141223184347.GK3062@tamriel.snowman.net> References: <31247.1419347882@sss.pgh.pa.us> <20141223153447.GD3062@tamriel.snowman.net> <31945.1419349892@sss.pgh.pa.us> <20141223161630.GG3062@tamriel.snowman.net> <379.1419352449@sss.pgh.pa.us> <20141223170633.GA29601@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wSq95SjGPZBE6hCW" Content-Disposition: inline In-Reply-To: <20141223170633.GA29601@momjian.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-40-generic (x86_64) X-Uptime: 13:39:53 up 3 days, 22:19, 4 users, load average: 0.13, 0.11, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --wSq95SjGPZBE6hCW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Bruce Momjian (bruce@momjian.us) wrote: > I am with Tom on this --- there is more wasted space in the 'name' > column pg_authid.rolname than by shoving 40 boolean values into a > bitmap. =20 I agree that we waste a lot of space in 'name' but I don't think there's an easy solution to that problem. This, on the other hand, seemed like a relatively minor change to an internal catalog definition. > Adding the complexity of a bitmap doesn't make sense here. I > also apologize for the late feedback. The complexity of the bitmap on the SQL side actually makes the code side cleaner. :/ It would be great to figure out a way to get feedback like this earlier on in the development. This patch has been floating around for quite a while, with intentional breaks for feedback taken prior to incremental improvements and documentation additions. Clearly that gets back to the discussion around the commitfest situation. > Offtopic, what I would really _love_ to see improved is our display of > object permissions: That's a whole different discussion and really belongs on a new thread. I'm certainly curious what ideas you have regarding how to fix this; it's not like Unix permission display is particularly elegant. Is there something you've seen that looks nicer while still conveying the necessary information in a relatively small amount of space? Thanks, Stephen --wSq95SjGPZBE6hCW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUmbfiAAoJEO1sijiDR2RVWLIP/jGaeiNOF9DakkpSdq4WBM1G fhIrrJz/occ8QrwDrLLbE5EmtshG7uzuqwEtkV+A7YNFHyFeDnHbPbqyNGnUzHtT 5cVvXO2/wQWRaHbEIHo94bn8nJZ4dD+kPjelf/PE0vroBGrlgIJFkBzMD8Htj8UF NxQr/GoWmPeyCBwEMu4heLRU3w2InS7AvT1s4f+j8gU/XpkWAe16zJBZxKcWqVwV 8Tc1JE0khCBuAJL7T8jRPWbZXzuKFTT0q6WnlEHQFUh/QreX/ypYoS6Mn38CdBuU VDuwt5fZWCPQQeCDHzkGBOMuNKp6r0mxx1cbLyAC7wr7l5Vf4Pan57hAjEgl3/Xh wu1M7YJPIRoTyBMkQ4XfOMy6Z18tq9RG27s/I8DiQHIVgNTUEp25M/IXz27Dgpuw fC2oEiB0BPdtqFjPuTY1KOUtLwTmuRaoimEu2xGDjIYgc87IUT946JA2Us+beS3Q dcxnaS9GR1HFHiOaSskR6iKTgo8CaKGjsQ42XbGhE19ElKR6YOdsD66IJIh3DpGA 2hmOwRiHiLvfUsbv8GMXn2QTRHCcwbdl45rJlu78uzL108XJBAH2kywthMRUiOoM If3Fe9Kw0O+0TN1xLl22cQmGKpikRhVaF2f/HiTi5SgTCf+yPrMa5PEua0hFZDtH o/91J2KzWKe49VyQClyO =2O4K -----END PGP SIGNATURE----- --wSq95SjGPZBE6hCW--