]> granicus.if.org Git - postgresql/commit
Use a bitmask to represent role attributes
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 23 Dec 2014 13:22:09 +0000 (10:22 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 23 Dec 2014 13:22:09 +0000 (10:22 -0300)
commit1826987a46d079458007b7b6bbcbbd852353adbb
treec3598d1d9c006551d2adff2b888112a24f2d03ed
parent7eca575d1c28f6eee2bf4564f3d458d10c4a8f47
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
30 files changed:
doc/src/sgml/catalogs.sgml
doc/src/sgml/func.sgml
src/backend/access/transam/xlogfuncs.c
src/backend/catalog/Catalog.pm
src/backend/catalog/Makefile
src/backend/catalog/aclchk.c
src/backend/catalog/genbki.pl
src/backend/catalog/information_schema.sql
src/backend/catalog/objectaddress.c
src/backend/catalog/system_views.sql
src/backend/commands/dbcommands.c
src/backend/commands/user.c
src/backend/commands/variable.c
src/backend/replication/logical/logicalfuncs.c
src/backend/replication/slotfuncs.c
src/backend/rewrite/rowsecurity.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/ri_triggers.c
src/backend/utils/init/miscinit.c
src/backend/utils/init/postinit.c
src/backend/utils/misc/superuser.c
src/bin/pg_dump/pg_dumpall.c
src/include/catalog/acldefs.h [new file with mode: 0644]
src/include/catalog/catversion.h
src/include/catalog/pg_authid.h
src/include/catalog/pg_proc.h
src/include/nodes/parsenodes.h
src/include/utils/acl.h
src/include/utils/builtins.h
src/test/regress/expected/rules.out