Re: query plan and parenthesis

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-general(at)postgresql(dot)org, pajout(at)gingerall(dot)cz
Subject: Re: query plan and parenthesis
Date: 2003-06-13 12:04:51
Message-ID: 3EE9BDE3.82597CF4@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> Thanks for answer, but:
> I did not want to determine the order of nesting, so I wrote something

> like CREATE VIEW myview AS SELECT ... FROM t1 INNER JOIN t2 ON ...
INNER
> JOIN t3 ON ... ; - without parenthesis
> When I read output of '\d myview', I found parenthesis.
I see.
> I think I must set some appropriate nesting order when I am defining
the
> view - optimizer are not able to resolve it from internally stored
> definition.
>
Another thought:
There has been recently a discussion on the hackers list about
unnecessary
parenthesesing while storing view definitions. The conclusion was it's
far too
error prone to start something like that. Because indeed there is no win
at all
regarding query execution in defining a view, you may consider skip the
definition
and leave it to the optimizer when preparing the original query.
Regards, Christoph

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Michel POURE 2003-06-13 12:50:26 Re: [GENERAL] graphical sql-query builder
Previous Message Martin Marques 2003-06-13 11:42:51 Re: Postgres performance comments from a MySQL user