Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit139d46e

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp