From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Russell Keane <Russell.Keane@inps.co.uk>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: query using incorrect index
Date: Thu, 02 Aug 2012 15:13:01 -0500
Message-ID: <501A98FD020000250004935D@gw.wicourts.gov> (raw)
In-Reply-To: <8D0E5D045E36124A8F1DDDB463D548557CEF4D2F7D@mxsvr1.is.inps.co.uk>
References: <8D0E5D045E36124A8F1DDDB463D548557CEF4D2F7D@mxsvr1.is.inps.co.uk>
Russell Keane <Russell.Keane@inps.co.uk> wrote:
> Clearly the statistics are off somehow but I really don't know
> where to start.
>
> Any help you can give me would be very much appreciated.
It would help to know your more about your hardware and PostgreSQL
configuration. The latter can probably best be communicated by
copy/paste of the results of the query on this page:
http://wiki.postgresql.org/wiki/Server_Configuration
Can you also post the EXPLAIN ANALYZE output for the slow query with
both indexes present but without the LIMIT clause?
-Kevin
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: Kevin.Grittner@wicourts.gov, Russell.Keane@inps.co.uk
Subject: Re: query using incorrect index
In-Reply-To: <501A98FD020000250004935D@gw.wicourts.gov>
References: <8D0E5D045E36124A8F1DDDB463D548557CEF4D2F7D@mxsvr1.is.inps.co.uk> <501A98FD020000250004935D@gw.wicourts.gov>
* 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