From: Dave Cramer <pg@fastcrypt.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Why the difference in plans ?
Date: Thu, 6 Mar 2008 13:56:19 -0500
Message-ID: <D9F2B8C8-C64A-490E-BB94-0322A6619FAF@fastcrypt.com> (raw)
In-Reply-To: <200803060926.38708.josh@agliodbs.com>
References: <E0CF6B25-5191-4AF7-8C72-E67FA2F1AE5E@fastcrypt.com>
<200803060926.38708.josh@agliodbs.com>
On 6-Mar-08, at 12:26 PM, Josh Berkus wrote:
> Dave,
>
>> Below I have two almost identical queries. Strangely enough the one
>> that uses the index is slower ???
>
> My first guess would be that records are highly correlated by DOB
> and not at
> all by name. However, it would help if you supplied both the index
> definitions and what changed between the two queries to cause the
> index to be
> used.
The two queries were run 2 seconds apart, there were no changes
between. I'll get the index definitions.
Dave
>
>
> --
> Josh Berkus
> PostgreSQL @ Sun
> San Francisco
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org
> )
> To make changes to your subscription:
> http://mail.postgresql.org/mj/mj_wwwusr?domain=postgresql.org&extra=pgsql-performance
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-performance@postgresql.org
Cc: pg@fastcrypt.com, josh@agliodbs.com
Subject: Re: Why the difference in plans ?
In-Reply-To: <D9F2B8C8-C64A-490E-BB94-0322A6619FAF@fastcrypt.com>
References: <E0CF6B25-5191-4AF7-8C72-E67FA2F1AE5E@fastcrypt.com> <200803060926.38708.josh@agliodbs.com> <D9F2B8C8-C64A-490E-BB94-0322A6619FAF@fastcrypt.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