postgresql/src/bin
Tom Lane 0a1d2a7df8 Add psql \drg command to display role grants.
With the addition of INHERIT and SET options for role grants,
the historical display of role memberships in \du/\dg is woefully
inadequate.  Besides those options, there are pre-existing
shortcomings that you can't see the ADMIN option nor the grantor.

To fix this, remove the "Member of" column from \du/\dg altogether
(making that output usefully narrower), and invent a new meta-command
"\drg" that is specifically for displaying role memberships.  It
shows one row for each role granted to the selected role(s), with
the grant options and grantor.

We would not normally back-patch such a feature addition post
feature freeze, but in this case the change is mainly driven by
v16 changes in the server, so it seems appropriate to include it
in v16.

Pavel Luzanov, with bikeshedding and review from a lot of people,
but particularly David Johnston

Discussion: https://postgr.es/m/b9be2d0e-a9bc-0a30-492f-a4f68e4f7740@postgrespro.ru
2023-07-19 12:46:30 -04:00
..
initdb Translation updates 2023-06-26 12:02:02 +02:00
pg_amcheck Handle DROP DATABASE getting interrupted 2023-07-13 13:03:30 -07:00
pg_archivecleanup Translation updates 2023-05-22 12:44:31 +02:00
pg_basebackup Fix tmpdir issues with commit e213de8e78 2023-07-08 12:37:41 -04:00
pg_checksums Translation updates 2023-05-22 12:44:31 +02:00
pg_config Translation updates 2023-05-22 12:44:31 +02:00
pg_controldata Translation updates 2023-05-22 12:44:31 +02:00
pg_ctl Translation updates 2023-05-22 12:44:31 +02:00
pg_dump Handle DROP DATABASE getting interrupted 2023-07-13 13:03:30 -07:00
pg_resetwal Translation updates 2023-05-22 12:44:31 +02:00
pg_rewind Translation updates 2023-05-22 12:44:31 +02:00
pg_test_fsync Translation updates 2023-05-22 12:44:31 +02:00
pg_test_timing Translation updates 2023-05-22 12:44:31 +02:00
pg_upgrade Handle DROP DATABASE getting interrupted 2023-07-13 13:03:30 -07:00
pg_verifybackup Translation updates 2023-05-22 12:44:31 +02:00
pg_waldump Add timeline ID to file names generated with pg_waldump --save-fullpage 2023-06-28 16:26:55 +09:00
pgbench Fix pgbench in prepared mode with an empty pipeline 2023-05-25 12:36:18 +02:00
pgevent Update copyright for 2023 2023-01-02 15:00:37 -05:00
psql Add psql \drg command to display role grants. 2023-07-19 12:46:30 -04:00
scripts Handle DROP DATABASE getting interrupted 2023-07-13 13:03:30 -07:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00