aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2021-09-28 16:23:18 +0200
committerMagnus Hagander <magnus@hagander.net>2021-09-28 16:24:24 +0200
commitfebbb2f52c99b16261387daba4931d621dfbef0f (patch)
tree5cb5505cdd46f8a228335c7c32357cab71555738 /src
parent86a4dc1e6f29d1992a2afa3fac1a0b0a6e84568c (diff)
downloadpostgresql-febbb2f52c99b16261387daba4931d621dfbef0f.tar.gz
postgresql-febbb2f52c99b16261387daba4931d621dfbef0f.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/describe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index fe98270acd1..ac4247680c8 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -2881,7 +2881,7 @@ describeOneTableDetails(const char *schemaname,
"stxrelid::pg_catalog.regclass, "
"stxnamespace::pg_catalog.regnamespace AS nsp, "
"stxname,\n"
- "pg_get_statisticsobjdef_columns(oid) AS columns,\n"
+ "pg_catalog.pg_get_statisticsobjdef_columns(oid) AS columns,\n"
" 'd' = any(stxkind) AS ndist_enabled,\n"
" 'f' = any(stxkind) AS deps_enabled,\n"
" 'm' = any(stxkind) AS mcv_enabled,\n"
@@ -4734,7 +4734,7 @@ listExtendedStats(const char *pattern)
if (pset.sversion >= 140000)
appendPQExpBuffer(&buf,
"pg_catalog.format('%%s FROM %%s', \n"
- " pg_get_statisticsobjdef_columns(es.oid), \n"
+ " pg_catalog.pg_get_statisticsobjdef_columns(es.oid), \n"
" es.stxrelid::pg_catalog.regclass) AS \"%s\"",
gettext_noop("Definition"));
else