[GENERAL] Bug with view definition?

2005-06-08 Thread Sebastian Böck
Hello all, why is the last definition of a view not working, although the documentation says all three are equal? Testcase: CREATE SCHEMA one; CREATE SCHEMA two; CREATE TABLE one.one ( id SERIAL PRIMARY KEY ); CREATE TABLE two.two ( id SERIAL PRIMARY KEY ); CREATE TABLE

Re: [GENERAL] Bug with view definition?

2005-06-08 Thread Richard Huxton
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

Re: [GENERAL] Bug with view definition?

2005-06-08 Thread Sebastian Böck
Richard Huxton wrote: 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

Re: [GENERAL] Bug with view definition?

2005-06-08 Thread Tom Lane
=?ISO-8859-1?Q?Sebastian_B=F6ck?= [EMAIL PROTECTED] writes: why is the last definition of a view not working, although the documentation says all three are equal? The documentation says no such thing... CREATE OR REPLACE VIEW not_working AS SELECT one.* FROM one.one, two.two

Re: [GENERAL] Bug with view definition?

2005-06-08 Thread Sebastian Böck
Tom Lane wrote: =?ISO-8859-1?Q?Sebastian_B=F6ck?= [EMAIL PROTECTED] writes: why is the last definition of a view not working, although the documentation says all three are equal? The documentation says no such thing... So I misinterpreted the following:

Re: [GENERAL] Bug with view definition?

2005-06-08 Thread Richard Huxton
Sebastian Böck wrote: Richard Huxton wrote: 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