From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Nick Fankhauser <nickf@ontko.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Optimizing a condition based on an a very unequally
Date: Wed, 13 Mar 2002 13:21:38 -0800 (PST)
Message-ID: <20020313131759.B86474-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGEENMEIAA.nickf@ontko.com>
On Wed, 13 Mar 2002, Nick Fankhauser wrote:
> Thanks for the answer! ...but now I have more questions:
>
> Is it true that if I use this condition in a join that further constrains
> the results, this might use the index?
If there were other conditions, it may do so.
> Does PGSQL know that few or many rows will be returned because of data
> gathered from the last vacuum?
I'd guess the last analyze (or vacuum analyze).
> What do you mean by "tuple validity?" can't this query be resolved entirely
> based on the index?
Not currently, because the index doesn't know if the row can be seen by
your transaction. There may be rows that are valid for some transactions
but not yours that also have index entries.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, nickf@ontko.com
Subject: Re: Optimizing a condition based on an a very unequally
In-Reply-To: <20020313131759.B86474-100000@megazone23.bigpanda.com>
References: <NEBBLAAHGLEEPCGOBHDGEENMEIAA.nickf@ontko.com> <20020313131759.B86474-100000@megazone23.bigpanda.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