Re: Performance inside and outside view ( WAS Re: Select the - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Performance inside and outside view ( WAS Re: Select the
Date
Msg-id 20020912081941.L45896-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Performance inside and outside view ( WAS Re: Select the max on a field )  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Performance inside and outside view ( WAS Re: Select the  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On Thu, 12 Sep 2002, Tom Lane wrote:

> "Gaetano Mendola" <mendola@bigfoot.com> writes:
> > Yes that's right it's help me,
> > but here the optimizer have some problems:
>
> What's the datatype of id_user, and why are you quoting the compared
> constant in some cases but not others?  I don't think the difference
> has anything to do with the view here ...

At least in current sources it would, since it can't push down the clause
(unless I'm misreading subquery_is_pushdown_safe and the comment) through
the distinct on.




pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Performance inside and outside view ( WAS Re: Select the max on a field )
Next
From: "Gaetano Mendola"
Date:
Subject: Re: Performance inside and outside view ( WAS Re: Select the max on a field )