Re: "Number of columns exceed limit" on a hierarchy of views - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: "Number of columns exceed limit" on a hierarchy of views
Date
Msg-id 20090821190002.GJ5487@alvh.no-ip.org
Whole thread Raw
In response to Re: "Number of columns exceed limit" on a hierarchy of views  (Eric Schwarzenbach <subscriber@blackbrook.org>)
List pgsql-general
Eric Schwarzenbach wrote:

> In other words, if you have
>
> create view C select * from A join B on (A.foo = B.foo);
> create view D select * from C join E on (C.foo= E.foo);
> and you execute some select query on D, does it necessarily join A and B
> before joining the result to E, or might it decide to join B with E
> first before joining the result to A?

It may switch join order, yes.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: export a schema / import as new schema
Next
From: Archibald Zimonyi
Date:
Subject: Re: Questions about encoding between two databases