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
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
47414741
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy