postgresql/src
Robert Haas e3ce2de09d Allow grant-level control of role inheritance behavior.
The GRANT statement can now specify WITH INHERIT TRUE or WITH
INHERIT FALSE to control whether the member inherits the granted
role's permissions. For symmetry, you can now likewise write
WITH ADMIN TRUE or WITH ADMIN FALSE to turn ADMIN OPTION on or off.

If a GRANT does not specify WITH INHERIT, the behavior based on
whether the member role is marked INHERIT or NOINHERIT. This means
that if all roles are marked INHERIT or NOINHERIT before any role
grants are performed, the behavior is identical to what we had before;
otherwise, it's different, because ALTER ROLE [NO]INHERIT now only
changes the default behavior of future grants, and has no effect on
existing ones.

Patch by me. Reviewed and testing by Nathan Bossart and Tushar Ahuja,
with design-level comments from various others.

Discussion: http://postgr.es/m/CA+Tgmoa5Sf4PiWrfxA=sGzDKg0Ojo3dADw=wAHOhR9dggV=RmQ@mail.gmail.com
2022-08-25 10:06:02 -04:00
..
backend Allow grant-level control of role inheritance behavior. 2022-08-25 10:06:02 -04:00
bin Allow grant-level control of role inheritance behavior. 2022-08-25 10:06:02 -04:00
common Don't bother to set sockaddr_un.sun_len. 2022-08-24 00:09:37 +12:00
fe_utils Remove configure probe for sys/select.h. 2022-08-14 00:09:47 +12:00
include Allow grant-level control of role inheritance behavior. 2022-08-25 10:06:02 -04:00
interfaces Further reduce warnings with -Wshadow=compatible-local 2022-08-24 12:27:12 +12:00
makefiles solaris: Remove unnecessary gcc / gnu ld vs sun studio differences 2022-08-07 09:36:01 -07:00
pl Add PGDLLEXPORTS to some plpgsql function declarations 2022-07-20 10:24:50 +02:00
port Remove replacement code for getaddrinfo. 2022-08-14 09:53:28 +12:00
template aix: Remove checks for very old OS versions 2022-08-07 09:36:01 -07:00
test Allow grant-level control of role inheritance behavior. 2022-08-25 10:06:02 -04:00
timezone Remove fallbacks for strtoll, strtoull. 2022-08-06 09:59:51 +12:00
tools Allow parallel workers to retrieve some data from Port 2022-08-24 12:57:13 +09:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Remove unused configure variable. 2022-08-18 11:22:13 -04:00
Makefile.shlib aix: Fix SHLIB_EXPORTS reference in VPATH builds 2022-08-24 20:39:46 -07:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00