From: Craig Ringer <craig@postnewspapers.com.au>
To: Joshua Shanks <jjshanks@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: query planner not using the correct index
Date: Thu, 07 Aug 2008 10:47:22 +0800
Message-ID: <489A623A.4090400@postnewspapers.com.au> (raw)
In-Reply-To: <84f0acdb0808061435q5ebb607cjc311f1eb4da841a@mail.gmail.com>
References: <84f0acdb0808061435q5ebb607cjc311f1eb4da841a@mail.gmail.com>
Joshua Shanks wrote:
> This query is run on a test system just after a backup of the database
> has been restored and it does exactly what I expect it to do
[snip]
Obvious questions:
- Have you changed the random page cost on either installation?
- Have both installations had VACUUM ANALYZE run recently?
- Are the stats targets the same on both installations?
- Do both installations have similar shared buffers, total available
RAM info, etc?
--
Craig Ringer
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: craig@postnewspapers.com.au, jjshanks@gmail.com
Subject: Re: query planner not using the correct index
In-Reply-To: <489A623A.4090400@postnewspapers.com.au>
* 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