Re: Performance problem with joins - Mailing list pgsql-performance

From Tom Lane
Subject Re: Performance problem with joins
Date
Msg-id 8114.1157726776@sss.pgh.pa.us
Whole thread Raw
In response to Performance problem with joins  (fardeen memon <frank69in@yahoo.com>)
Responses Re: Performance problem with joins
List pgsql-performance
fardeen memon <frank69in@yahoo.com> writes:
> What is it that i am doing wrong?

I think the forced coercion to date type in the view case is preventing
the planner from making a good guess about the selectivity of the
condition on tra_date.  It has stats about tra_date's distribution,
but none about the distribution of "tra_date::date".

            regards, tom lane

pgsql-performance by date:

Previous
From: alvis
Date:
Subject: Re: Configuring System for Speed
Next
From: "Phadnis"
Date:
Subject: unsubscribe me