Skip to content

Commit 9a33ed8

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 b18669f commit 9a33ed8

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

39483948
if (showNested || pattern)
39493949
appendPQExpBuffer(&buf,
3950-
",\n inh.inhparent::regclass as \"%s\"",
3950+
",\n inh.inhparent::pg_catalog.regclass as \"%s\"",
39513951
gettext_noop("Parent name"));
39523952

39533953
if (showIndexes)
39543954
appendPQExpBuffer(&buf,
3955-
",\n c2.oid::regclass as \"%s\"",
3955+
",\n c2.oid::pg_catalog.regclass as \"%s\"",
39563956
gettext_noop("Table"));
39573957

39583958
if (verbose)

0 commit comments

Comments
 (0)