diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index fcbd268d2c9..3e19ce4386c 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -4028,7 +4028,8 @@ listForeignTables(const char *pattern, bool verbose) "d.objoid = c.oid AND d.objsubid = 0\n"); processSQLNamePattern(pset.db, &buf, pattern, false, false, - NULL, "n.nspname", "c.relname", NULL); + "n.nspname", "c.relname", NULL, + "pg_catalog.pg_table_is_visible(c.oid)"); appendPQExpBuffer(&buf, "ORDER BY 1, 2;");