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

From Tom Lane
Subject Re: Performance inside and outside view ( WAS Re: Select the
Date
Msg-id 8920.1031857027@sss.pgh.pa.us
Whole thread Raw
In response to Re: Performance inside and outside view ( WAS Re: Select the  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-sql
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> On Thu, 12 Sep 2002, Tom Lane wrote:
>> 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.

Oh, duh, you're right; I'd missed the DISTINCT ON ...
        regards, tom lane


pgsql-sql by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: Latitude / Longitude
Next
From: Andrew Perrin
Date:
Subject: LIMIT within UNION?