pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: pgsql-bugs@lists.postgresql.org
To: maxim.boguk@gmail.com
Subject: Re: BUG #15353: \det (list foreign tables) ignoring search_path
Date: Sat, 25 Aug 2018 22:44:24 +0100
Message-ID: <875zzyyvjh.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <153523137867.1487.3492770600528164072@wrigleys.postgresql.org>
References: <153523137867.1487.3492770600528164072@wrigleys.postgresql.org>

>>>>> "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)




view thread (2+ messages)

Message-ID: <875zzyyvjh.fsf@news-spur.riddles.org.uk>
Permalink:  ../875zzyyvjh.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/875zzyyvjh.fsf@news-spur.riddles.org.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, maxim.boguk@gmail.com
  Subject: Re: BUG #15353: \det (list foreign tables) ignoring search_path
  In-Reply-To: <875zzyyvjh.fsf@news-spur.riddles.org.uk>
  References: <153523137867.1487.3492770600528164072@wrigleys.postgresql.org> <875zzyyvjh.fsf@news-spur.riddles.org.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox