Re: query optimization differs between view and explicit - Mailing list pgsql-performance

From Reece Hart
Subject Re: query optimization differs between view and explicit
Date
Msg-id 1075490853.16553.109.camel@tallac
Whole thread Raw
In response to Re: query optimization differs between view and explicit  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Stephan, Tom-

Thanks. I now see that DISTINCT can't be moved within the plan as I thought. This is exactly the thinko that I was hoping someone would expose.

I've decided to abandon the DISTINCT clause. The view is more general and sufficiently fast without it, and callers can always add it themselves to achieve what I was doing in the explicit query.

I appreciate your time.

-Reece

-- 
Reece Hart, http://www.in-machina.com/~reece/, GPG:0x25EC91A0

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: another query optimization question
Next
From: Richard Huxton
Date:
Subject: Re: another query optimization question