Re: Bug with view definition? - Mailing list pgsql-general

From Richard Huxton
Subject Re: Bug with view definition?
Date
Msg-id 42A7136E.90006@archonet.com
Whole thread Raw
In response to Bug with view definition?  (Sebastian Böck <sebastianboeck@freenet.de>)
Responses Re: Bug with view definition?  (Sebastian Böck <sebastianboeck@freenet.de>)
List pgsql-general
Sebastian Böck wrote:
> Hello all,
>
> why is the last definition of a view not working, although the
> documentation says all three are equal?
>

>
> CREATE OR REPLACE VIEW not_working AS
>     SELECT one.*
>     FROM one.one, two.two
>     JOIN join1 ON join1.id = one.id;

I think it's trying to join "two" to "join1" - try
   ...FROM two.two, one.one
   JOIN join1...

--
   Richard Huxton
   Archonet Ltd


pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: deadlocks in multiple-triggers environment
Next
From: Alvaro Herrera
Date:
Subject: Re: return two elements