diff options
author | Alvaro Herrera | 2021-08-28 16:04:15 +0000 |
---|---|---|
committer | Alvaro Herrera | 2021-08-28 16:04:15 +0000 |
commit | 1f092a309eeecd097938bacc201c779574ced3b6 (patch) | |
tree | 4bde7d84b4f84370c249f444e9c0e2048c839625 /src/bin/psql/describe.c | |
parent | fc40ba1296a7d4aee7bd975be9925c74c8073dfe (diff) |
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 <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/psql/describe.c')
-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 e130a4df10a..30fb17123e4 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, |