Re: BUG #15353: \det (list foreign tables) ignoring search_path - Mailing list pgsql-bugs

From Andrew Gierth
Subject Re: BUG #15353: \det (list foreign tables) ignoring search_path
Date
Msg-id 875zzyyvjh.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to BUG #15353: \det (list foreign tables) ignoring search_path  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> writes:

 PG> Looks like that the   \det[+] [PATTERN]      list foreign tables
 PG> ignoring current searh_path settings:

Nope, what you're missing is that pg_catalog is implicitly on the front
of the search path (if not otherwise specified), so
pg_catalog.pg_stat_user_tables is considered to "hide"
public.pg_stat_user_tables. Object X in schema Y is only considered
"visible" if using the unqualified name "X" actually resolves to the Y.X
object, and in this case, if one just refers to "pg_stat_user_tables"
one gets pg_catalog.pg_stat_user_tables, not public.pg_stat_user_tables.

-- 
Andrew (irc:RhodiumToad)


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15353: \det (list foreign tables) ignoring search_path
Next
From: Thomas Munro
Date:
Subject: Re: BUG #15348: Postgres 8.4 accepte les connexions entrantes