pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: fardeen memon <frank69in@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance problem with joins
Date: Fri, 08 Sep 2006 10:46:16 -0400
Message-ID: <8114.1157726776@sss.pgh.pa.us> (raw)
In-Reply-To: <20060908124823.83664.qmail@web60820.mail.yahoo.com>
References: <20060908124823.83664.qmail@web60820.mail.yahoo.com>

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



view thread (4+ messages)  latest in thread

Message-ID: <8114.1157726776@sss.pgh.pa.us>
Permalink:  ../8114.1157726776@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8114.1157726776@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, frank69in@yahoo.com
  Subject: Re: Performance problem with joins
  In-Reply-To: <8114.1157726776@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox