diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-08-28 12:04:15 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-08-28 12:04:15 -0400 |
commit | 359bcf775550aa577c86ea30a6d071487fcca1ed (patch) | |
tree | 49d80c0b786f630c02e0d2e36ea95cf87304150a /src | |
parent | a32860b88f1ffd6ba5b8bc803aecf6bc0f87cf02 (diff) | |
download | postgresql-359bcf775550aa577c86ea30a6d071487fcca1ed.tar.gz postgresql-359bcf775550aa577c86ea30a6d071487fcca1ed.zip |
psql \dX: reference regclass with "pg_catalog." prefix
Déjà vu of commit fc40ba1296a7, 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 ad600bba0422 and replicated in
a4d75c86bf15; backpatch to 14.
Author: Justin Pryzby <pryzbyj@telsasoft.com>
Discussion: https://postgr.es/m/20210827193151.GN26465@telsasoft.com
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/describe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index fdd6860f2f3..37ca88a8e26 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -4735,7 +4735,7 @@ listExtendedStats(const char *pattern) appendPQExpBuffer(&buf, "pg_catalog.format('%%s FROM %%s', \n" " pg_get_statisticsobjdef_columns(es.oid), \n" - " es.stxrelid::regclass) AS \"%s\"", + " es.stxrelid::pg_catalog.regclass) AS \"%s\"", gettext_noop("Definition")); else appendPQExpBuffer(&buf, @@ -4746,7 +4746,7 @@ listExtendedStats(const char *pattern) " ON (es.stxrelid = a.attrelid \n" " AND a.attnum = s.attnum \n" " AND NOT a.attisdropped)), \n" - "es.stxrelid::regclass) AS \"%s\"", + "es.stxrelid::pg_catalog.regclass) AS \"%s\"", gettext_noop("Definition")); appendPQExpBuffer(&buf, |