Skip to content

Commit 300a79f

Browse files
committed
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 1c5d927, so backpatch to 12. Author: Justin Pryzby <pryzbyj@telsasoft.com> Discussion: https://postgr.es/m/20210827193151.GN26465@telsasoft.com
1 parent a494f10 commit 300a79f

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
@@ -3867,12 +3867,12 @@ listPartitionedTables(const char *reltypes, const char *pattern, bool verbose)
38673867

38683868
if (showNested || pattern)
38693869
appendPQExpBuffer(&buf,
3870-
",\n inh.inhparent::regclass as \"%s\"",
3870+
",\n inh.inhparent::pg_catalog.regclass as \"%s\"",
38713871
gettext_noop("Parent name"));
38723872

38733873
if (showIndexes)
38743874
appendPQExpBuffer(&buf,
3875-
",\n c2.oid::regclass as \"%s\"",
3875+
",\n c2.oid::pg_catalog.regclass as \"%s\"",
38763876
gettext_noop("Table"));
38773877

38783878
if (verbose)

0 commit comments

Comments
 (0)