Re: Schema search path - Mailing list pgsql-general

From Tom Lane
Subject Re: Schema search path
Date
Msg-id 20829.1284418564@sss.pgh.pa.us
Whole thread Raw
In response to Re: Schema search path  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Schema search path
List pgsql-general
Bruce Momjian <bruce@momjian.us> writes:
> Yaroslav Tykhiy wrote:
>> SELECT * FROM foo.bar WHERE bar.a=1;
>>                             ^^^ this means foo.bar

>> Do you think it's a feature or a bug? :-)

> Feature, and SQL-standard behavior.

It might be worth pointing out that this has nothing to do with
search_path; rather, the key is that the FROM clause establishes
a table alias "bar" for the query.

            regards, tom lane

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Schema search path
Next
From: Vlad Romascanu
Date:
Subject: Any plans to expose publicly (via stored proc) relation_needs_vacanalyze, or some flavour of do_autovacuum?