Re: Bug with view definition?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Sebastian Böck <sebastianboeck(at)freenet(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Bug with view definition?
Date: 2005-06-08 15:49:02
Message-ID: 42A7136E.90006@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2005-06-08 15:53:15 Re: return two elements
Previous Message hubert depesz lubaczewski 2005-06-08 15:45:45 deadlocks in multiple-triggers environment