Re: Weird results when using schemas - Mailing list pgsql-general

From Geert Jansen
Subject Re: Weird results when using schemas
Date
Msg-id 43825497.9040401@boskant.nl
Whole thread Raw
In response to Re: Weird results when using schemas  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
Michael Fuhr wrote:
> You refer to shs.city.<column> in the select list, but in the from
> clause you've aliased shs.city to city.  As the SELECT documentation
> says,
>
>   When an alias is provided, it completely hides the actual name
>   of the table or function; for example given FROM foo AS f, the
>   remainder of the SELECT must refer to this FROM item as f not foo.
>

Michael,

Thanks a lot for your very helpful answer (thanks to Stephan Szabo as
well). I've now changed my query as per your indications and indeed it
works ok.

Best regards,
Geert

pgsql-general by date:

Previous
From: Matthew Terenzio
Date:
Subject: Timestamp with Timezone
Next
From: "A.j. Langereis"
Date:
Subject: Difference in indexes