From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Use a bitmask to represent role attributes
Date: Tue, 23 Dec 2014 13:22:48 +0000
Message-ID: <E1Y3PQG-0006Hc-Ff@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Use a bitmask to represent role attributes
The previous representation using a boolean column for each attribute
would not scale as well as we want to add further attributes.
Extra auxilliary functions are added to go along with this change, to
make up for the lost convenience of access of the old representation.
Catalog version bumped due to change in catalogs and the new functions.
Author: Adam Brightwell, minor tweaks by Álvaro
Reviewed by: Stephen Frost, Andres Freund, Álvaro Herrera
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/1826987a46d079458007b7b6bbcbbd852353adbb
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 127 ++++++++----
doc/src/sgml/func.sgml | 127 ++++++++++++
src/backend/access/transam/xlogfuncs.c | 5 +-
src/backend/catalog/Catalog.pm | 2 +-
src/backend/catalog/Makefile | 2 +-
src/backend/catalog/aclchk.c | 125 ++++++------
src/backend/catalog/genbki.pl | 3 +
src/backend/catalog/information_schema.sql | 7 +-
src/backend/catalog/objectaddress.c | 2 +-
src/backend/catalog/system_views.sql | 28 +--
src/backend/commands/dbcommands.c | 27 +--
src/backend/commands/user.c | 244 ++++++++++++++----------
src/backend/commands/variable.c | 8 +-
src/backend/replication/logical/logicalfuncs.c | 16 +-
src/backend/replication/slotfuncs.c | 3 +-
src/backend/rewrite/rowsecurity.c | 2 +-
src/backend/utils/adt/acl.c | 200 +++++++++++++++++--
src/backend/utils/adt/ri_triggers.c | 2 +-
src/backend/utils/init/miscinit.c | 23 +--
src/backend/utils/init/postinit.c | 2 +-
src/backend/utils/misc/superuser.c | 4 +-
src/bin/pg_dump/pg_dumpall.c | 14 +-
src/include/catalog/acldefs.h | 72 +++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_authid.h | 34 ++--
src/include/catalog/pg_proc.h | 13 ++
src/include/nodes/parsenodes.h | 28 +--
src/include/utils/acl.h | 14 +-
src/include/utils/builtins.h | 6 +
src/test/regress/expected/rules.out | 28 +--
30 files changed, 798 insertions(+), 372 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Use a bitmask to represent role attributes
In-Reply-To: <E1Y3PQG-0006Hc-Ff@gemulon.postgresql.org>
References: <E1Y3PQG-0006Hc-Ff@gemulon.postgresql.org>
* 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