aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-07-19 12:46:30 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-07-19 12:46:30 -0400
commitd65ddaca93f6f31e76b15bc1001f5cabb6a46c9d (patch)
treec1fdd5262a7d735ddcab680284a126ad875492fc /src/backend/utils/adt/jsonfuncs.c
parent15c68cd84a2c80eed9b67ed6746ed5b91baea587 (diff)
downloadpostgresql-d65ddaca93f6f31e76b15bc1001f5cabb6a46c9d.tar.gz
postgresql-d65ddaca93f6f31e76b15bc1001f5cabb6a46c9d.zip
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
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions