Re: "Number of columns exceed limit" on a hierarchy of views

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Eric Schwarzenbach <subscriber(at)blackbrook(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: "Number of columns exceed limit" on a hierarchy of views
Date: 2009-08-21 19:00:02
Message-ID: 20090821190002.GJ5487@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2009-08-21 19:00:11 Re: export a schema / import as new schema
Previous Message Boyd, Craig 2009-08-21 18:59:43 Re: Schema diff tool?