Re: Performance inside and outside view ( WAS Re: Select the

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Gaetano Mendola <mendola(at)bigfoot(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Performance inside and outside view ( WAS Re: Select the
Date: 2002-09-12 15:22:54
Message-ID: 20020912081941.L45896-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Thu, 12 Sep 2002, Tom Lane wrote:

> "Gaetano Mendola" <mendola(at)bigfoot(dot)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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Gaetano Mendola 2002-09-12 15:53:38 Re: Performance inside and outside view ( WAS Re: Select the max on a field )
Previous Message Tom Lane 2002-09-12 14:50:23 Re: Performance inside and outside view ( WAS Re: Select the max on a field )