Re: How about a psql backslash command to show GUCs?
Jonathan S. Katz <jkatz@postgresql.org>
From: "Jonathan S. Katz" <jkatz@postgresql.org>
To: Tom Lane <tgl@sss.pgh.pa.us>, Joe Conway <mail@joeconway.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>,
pgsql-hackers@lists.postgresql.org,
Mark Dilger <mark.dilger@enterprisedb.com>
Date: 2022-04-06T21:34:36Z
Lists: pgsql-hackers
On 4/6/22 2:40 PM, Tom Lane wrote: > Joe Conway <mail@joeconway.com> writes: >> No as sure about \show though. That seems like it could be confused with >> showing other stuff. Maybe consistent with \sf[+] and \sv[+] we could >> add \sc[+]? > > Hmm ... my first reaction to that was "no, it should be \sp for > 'parameter'". But with the neighboring \sf for 'function', it'd > be easy to think that maybe 'p' means 'procedure'. > > I do agree that \show might be a bad choice, the reason being that > the adjacent \set command is for psql variables not GUCs; if we > had a \show I'd sort of expect it to be a variant spelling of > "\echo :variable". > > "\sc" isn't awful perhaps. > > Ah, naming ... the hardest problem in computer science. (but the easiest thing to have an opinion on ;) +1 on the feature proposal. I am a bit torn between "\dcp" (or \dsetting / \dconfig? we don't necessarily need for it to be super short) and "\sc". Certainly with pattern matching the interface for the "\d" commands would fit that pattern. "\sc" would make sense for a thorough introspection of what is in the GUC. That said, we get that with SHOW today. So I'm leaning towards something in the "\d" family. Thanks, Jonathan
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Be more careful about GucSource for internally-driven GUC settings.
- 7ab5b4eb4834 15.0 landed
-
Fix case sensitivity in psql's tab completion for GUC names.
- b5607b0746f4 15.0 landed
-
Further tweak the default behavior of psql's \dconfig.
- 139d46ee26a2 15.0 landed
-
Tweak the default behavior of psql's \dconfig.
- 5e70d8b5d18b 15.0 landed
-
psql: add \dconfig command to show server's configuration parameters.
- 3e707fbb4009 15.0 landed
-
Allow granting SET and ALTER SYSTEM privileges on GUC parameters.
- a0ffa885e478 15.0 cited