Skip to content

Commit 07f8a9e

Browse files
committed
Properly schema-prefix reference to pg_catalog.pg_get_statisticsobjdef_columns
Author: Tatsuro Yamada Backpatch-through: 14 Discussion: https://www.postgresql.org/message-id/7ad8cd13-db5b-5cf6-8561-dccad1a934cb@nttcom.co.jp
1 parent c3b011d commit 07f8a9e

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
Original file line numberDiff line numberDiff line change
@@ -2881,7 +2881,7 @@ describeOneTableDetails(const char *schemaname,
28812881
"stxrelid::pg_catalog.regclass, "
28822882
"stxnamespace::pg_catalog.regnamespace AS nsp, "
28832883
"stxname,\n"
2884-
"pg_get_statisticsobjdef_columns(oid) AS columns,\n"
2884+
"pg_catalog.pg_get_statisticsobjdef_columns(oid) AS columns,\n"
28852885
" 'd' = any(stxkind) AS ndist_enabled,\n"
28862886
" 'f' = any(stxkind) AS deps_enabled,\n"
28872887
" 'm' = any(stxkind) AS mcv_enabled,\n"
@@ -4734,7 +4734,7 @@ listExtendedStats(const char *pattern)
47344734
if (pset.sversion >= 140000)
47354735
appendPQExpBuffer(&buf,
47364736
"pg_catalog.format('%%s FROM %%s', \n"
4737-
" pg_get_statisticsobjdef_columns(es.oid), \n"
4737+
" pg_catalog.pg_get_statisticsobjdef_columns(es.oid), \n"
47384738
" es.stxrelid::pg_catalog.regclass) AS \"%s\"",
47394739
gettext_noop("Definition"));
47404740
else

0 commit comments

Comments
 (0)