Re: How about a psql backslash command to show GUCs?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christoph Berg <myon@debian.org>
Cc: "Jonathan S. Katz" <jkatz@postgresql.org>,
Robert Haas <robertmhaas@gmail.com>,
Justin Pryzby <pryzby@telsasoft.com>,
Julien Rouhaud <rjuju123@gmail.com>,
Pavel Stehule <pavel.stehule@gmail.com>,
"David G. Johnston" <david.g.johnston@gmail.com>,
Joe Conway <mail@joeconway.com>,
Mark Dilger <mark.dilger@enterprisedb.com>,
Andrew Dunstan <andrew@dunslane.net>,
David Rowley <dgrowleyml@gmail.com>,
Alvaro Herrera <alvherre@alvh.no-ip.org>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-06-07T23:58:25Z
Lists: pgsql-hackers
Attachments
- use-PGC_S_DYNAMIC_DEFAULT-in-more-places-2.patch (text/x-diff) patch
I wrote: > The attached draft patch makes the following changes: Here's a v2 that polishes the loose ends: > (I didn't do anything about in_hot_standby, which is set through > a hack rather than via set_config_option; not sure whether we want > to do anything there, or what it should be if we do.) I concluded that directly assigning to in_hot_standby was a fairly horrid idea and we should just change it with SetConfigOption. With this coding, as long as in_hot_standby is TRUE it will show as having a non-default setting in \dconfig. I had to remove the assertion I'd added about PGC_INTERNAL variables only receiving "default" values, but this just shows that was too inflexible anyway. > * The rlimit-derived value of max_stack_depth is likewise relabeled > as PGC_S_DYNAMIC_DEFAULT, resolving the complaint Jonathan had upthread. > But now that we have a way to hide this, I'm having second thoughts > about whether we should. If you are on a platform that's forcing an > unreasonably small stack size, it'd be good if \dconfig told you so. > Could it be sane to label that value as PGC_S_DYNAMIC_DEFAULT only when > it's the limit value (2MB) and PGC_S_ENV_VAR when it's smaller? I concluded that was just fine and did it. regards, tom lane
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