8000 psql \dX: reference regclass with "pg_catalog." prefix · postgres/postgres@1f092a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f092a3

Browse files
committed
psql \dX: reference regclass with "pg_catalog." prefix
Déjà vu of commit fc40ba1, for another backslash command. Strictly speaking this isn't a bug, but since all references to catalog objects are schema-qualified, we might as well be consistent. The omission first appeared in commit ad600bb and replicated in a4d75c8; backpatch to 14. Author: Justin Pryzby <pryzbyj@telsasoft.com> Discussion: https://postgr.es/m/20210827193151.GN26465@telsasoft.com
1 parent fc40ba1 commit 1f092a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
< 6D92 td data-grid-cell-id="diff-cdb325f8994210a4cfacc19525f11e9b368a3f78641b67105c105449df9b645c-4741-4741-0" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">4741
Original file line numberDiff line numberDiff line change
@@ -4735,7 +4735,7 @@ listExtendedStats(const char *pattern)
47354735
appendPQExpBuffer(&buf,
47364736
"pg_catalog.format('%%s FROM %%s', \n"
47374737
" pg_get_statisticsobjdef_columns(es.oid), \n"
4738-
" es.stxrelid::regclass) AS \"%s\"",
4738+
" es.stxrelid::pg_catalog.regclass) AS \"%s\"",
47394739
gettext_noop("Definition"));
47404740
else
4741
appendPQExpBuffer(&buf,
@@ -4746,7 +4746,7 @@ listExtendedStats(const char *pattern)
47464746
" ON (es.stxrelid = a.attrelid \n"
47474747
" AND a.attnum = s.attnum \n"
47484748
" AND NOT a.attisdropped)), \n"
4749-
"es.stxrelid::regclass) AS \"%s\"",
4749+
"es.stxrelid::pg_catalog.regclass) AS \"%s\"",
47504750
gettext_noop("Definition"));
47514751

47524752
appendPQExpBuffer(&buf,

0 commit comments

Comments
 (0)
0