Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 139d46e

Browse files
committed
Further tweak the default behavior of psql's \dconfig.
Define "parameters with non-default settings" as being those that not only have pg_settings.source different from 'default', but also have a current value different from the hard-wired boot_val. Adding the latter restriction removes a number of not-very-interesting cases where the active setting is chosen by initdb but in practice tends to be the same all the time. Per discussion with Jonathan Katz. Discussion: https://postgr.es/m/YlFQLzlPi4QD0wSi@msg.df7cb.de
1 parent 7b7ed04 commit 139d46e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/psql/describe.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4408,7 +4408,8 @@ describeConfigurationParameters(const char *pattern, bool verbose,
44084408
NULL, "pg_catalog.lower(s.name)", NULL,
44094409
NULL);
44104410
else
4411-
appendPQExpBufferStr(&buf, "WHERE s.source <> 'default'\n");
4411+
appendPQExpBufferStr(&buf, "WHERE s.source <> 'default' AND\n"
4412+
" s.setting IS DISTINCT FROM s.boot_val\n");
44124413

44134414
appendPQExpBufferStr(&buf, "ORDER BY 1;");
44144415

0 commit comments

Comments
 (0)