Re: Schema search path

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Yaroslav Tykhiy <yar(at)barnet(dot)com(dot)au>, pgsql-general(at)postgresql(dot)org
Subject: Re: Schema search path
Date: 2010-09-13 22:56:04
Message-ID: 20829.1284418564@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian <bruce(at)momjian(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Yaroslav Tykhiy 2010-09-14 00:21:30 Re: Schema search path
Previous Message Vlad Romascanu 2010-09-13 22:55:02 Any plans to expose publicly (via stored proc) relation_needs_vacanalyze, or some flavour of do_autovacuum?