diff options
author | Tom Lane | 2022-04-07 21:09:44 +0000 |
---|---|---|
committer | Tom Lane | 2022-04-07 21:09:51 +0000 |
commit | 3e707fbb4009e9ac1d0e8b78b7af9f3f03f4cf1a (patch) | |
tree | 51a4fa81b580a8ed55f7640d32dd6b5978705265 /src/bin/psql/describe.h | |
parent | 16acf7f1aaea6c5efc0fa49182c16cd6bfd9f3d3 (diff) |
psql: add \dconfig command to show server's configuration parameters.
Plain \dconfig is basically equivalent to SHOW except that you can
give it a pattern with wildcards, either to match multiple GUCs or
because you don't exactly remember the name you want.
\dconfig+ adds type, context, and access-privilege information,
mainly because every other kind of object privilege has a psql command
to show it, so GUC privileges should too. (A form of this command was
in some versions of the patch series leading up to commit a0ffa885e.
We pulled it out then because of doubts that the design and code were
up to snuff, but I think subsequent work has resolved that.)
In passing, fix incorrect completion of GUC names in GRANT/REVOKE
ON PARAMETER: a0ffa885e neglected to use the VERBATIM form of
COMPLETE_WITH_QUERY, so it misbehaved for custom (qualified) GUC
names.
Mark Dilger and Tom Lane
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/psql/describe.h')
-rw-r--r-- | src/bin/psql/describe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/psql/describe.h b/src/bin/psql/describe.h index fd6079679c6..7872c71f58d 100644 --- a/src/bin/psql/describe.h +++ b/src/bin/psql/describe.h @@ -76,6 +76,10 @@ extern bool listDomains(const char *pattern, bool verbose, bool showSystem); /* \dc */ extern bool listConversions(const char *pattern, bool verbose, bool showSystem); +/* \dconfig */ +extern bool describeConfigurationParameters(const char *pattern, bool verbose, + bool showSystem); + /* \dC */ extern bool listCasts(const char *pattern, bool verbose); |