diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-08-28 11:45:47 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-08-28 11:45:47 -0400 |
commit | 9a33ed8fa10354bdb3f12d87ccd9f387bec338d1 (patch) | |
tree | 0deae5d2703503060e49959a8d0209cbcce53477 /src | |
parent | b18669f5e652f1d0c1dbf332fd7cd24a38c7ed31 (diff) | |
download | postgresql-9a33ed8fa10354bdb3f12d87ccd9f387bec338d1.tar.gz postgresql-9a33ed8fa10354bdb3f12d87ccd9f387bec338d1.zip |
psql \dP: reference regclass with "pg_catalog." prefix
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 1c5d9270e339, so backpatch to 12.
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 4bdf6ce965e..384db608785 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -3947,12 +3947,12 @@ listPartitionedTables(const char *reltypes, const char *pattern, bool verbose) if (showNested || pattern) appendPQExpBuffer(&buf, - ",\n inh.inhparent::regclass as \"%s\"", + ",\n inh.inhparent::pg_catalog.regclass as \"%s\"", gettext_noop("Parent name")); if (showIndexes) appendPQExpBuffer(&buf, - ",\n c2.oid::regclass as \"%s\"", + ",\n c2.oid::pg_catalog.regclass as \"%s\"", gettext_noop("Table")); if (verbose) |