pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: siracusa@mindspring.com
Cc: Postgres Performance <pgsql-performance@postgresql.org>
Subject: Re: Column correlation drifts, index ignored again
Date: Sun, 22 Feb 2004 22:38:40 -0500
Message-ID: <20484.1077507520@sss.pgh.pa.us> (raw)
In-Reply-To: <BC5EAED3.2DCDA%siracusa@mindspring.com>
References: <BC5EAED3.2DCDA%siracusa@mindspring.com>

John Siracusa <siracusa@mindspring.com> writes:
> Does the planner get estimates from both plans before deciding whether or
> not to use the one that references the date index?

The rowcount estimate is made prior to the plan cost estimate, much less
the plan selection.  So you'd see the same number either way.

			regards, tom lane



view thread (16+ messages)  latest in thread

Message-ID: <20484.1077507520@sss.pgh.pa.us>
Permalink:  ../20484.1077507520@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20484.1077507520@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, siracusa@mindspring.com
  Subject: Re: Column correlation drifts, index ignored again
  In-Reply-To: <20484.1077507520@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