summaryrefslogtreecommitdiff
path: root/src/bin/psql/describe.c
diff options
context:
space:
mode:
authorNoah Misch2021-03-26 17:42:17 +0000
committerNoah Misch2021-03-26 17:42:17 +0000
commita14a0118a1fecf4066e53af52ed0f188607d0c4b (patch)
treed24b18e8c0fe2d3af805efe11e54d5718c249732 /src/bin/psql/describe.c
parentf687bf61ed4dc75ec074c387f848147da2097e13 (diff)
Add "pg_database_owner" default role.
Membership consists, implicitly, of the current database owner. Expect use in template databases. Once pg_database_owner has rights within a template, each owner of a database instantiated from that template will exercise those rights. Reviewed by John Naylor. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/psql/describe.c')
-rw-r--r--src/bin/psql/describe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index c9f7118a5dc..e56cc43e111 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -3557,6 +3557,7 @@ describeRoles(const char *pattern, bool verbose, bool showSystem)
printTableAddHeader(&cont, gettext_noop("Role name"), true, align);
printTableAddHeader(&cont, gettext_noop("Attributes"), true, align);
+ /* ignores implicit memberships from superuser & pg_database_owner */
printTableAddHeader(&cont, gettext_noop("Member of"), true, align);
if (verbose && pset.sversion >= 80200)