From: Greg Stark <gsstark@mit.edu>
To: John A Meinel <john@arbash-meinel.com>
Cc: lutzeb@aeccom.com, Richard Huxton <dev@archonet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimizer seems to be way off, why?
Date: 21 Jul 2005 12:40:17 -0400
Message-ID: <87vf34cdu6.fsf@stark.xeocode.com> (raw)
In-Reply-To: <42DEBACF.2020405@arbash-meinel.com>
References: <42DE6CD5.8070100@aeccom.com>
<42DE8375.8020205@archonet.com>
<42DEA308.6030608@aeccom.com>
<42DEBACF.2020405@arbash-meinel.com>
John A Meinel <john@arbash-meinel.com> writes:
> Now if you created the index on b(r,c), then it would have a much better
> idea of how selective that would be. At the very least, it could index
> on (r,c) rather than indexing on (r) and filtering by (c).
There has been some discussion of adding functionality like this but afaik no
version of Postgres actually does this yet.
Adding the index may still help though.
--
greg
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: gsstark@mit.edu, john@arbash-meinel.com, dev@archonet.com
Subject: Re: Optimizer seems to be way off, why?
In-Reply-To: <87vf34cdu6.fsf@stark.xeocode.com>
* 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