From: Scott Marlowe <scott.marlowe@gmail.com>
To: Antoine Baudoux <ab@taktik.be>
Cc: Shaun Thomas <sthomas@leapfrogonline.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: multiple joins + Order by + LIMIT query performance issue
Date: Fri, 9 May 2008 01:53:18 -0600
Message-ID: <dcc563d10805090053l2075c4acra2925264040e808b@mail.gmail.com> (raw)
In-Reply-To: <17BEF74A-6B90-4BAD-8612-3548B616AFC7@taktik.be>
References: <938EC908-FB9A-4BFA-950A-053BE3C87085@taktik.be>
<1210092220.14833.33.camel@berners-lee>
<ED75A52A-2CBC-4EA3-AE1A-E344B08A9682@taktik.be>
<1210098273.14833.55.camel@berners-lee>
<17BEF74A-6B90-4BAD-8612-3548B616AFC7@taktik.be>
On Fri, May 9, 2008 at 1:18 AM, Antoine Baudoux <ab@taktik.be> wrote:
> Ok, I've tried everything, and the planner keeps choosing index scans when
> it shouldnt.
>
> Is there a way to disable index scans?
You can use "set enable_indexscan off;" as the first command I've had
one or two reporting queries in the past that it was a necessity to do
that before running certain queries on very large datasets where a seq
scan would kill 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: scott.marlowe@gmail.com, ab@taktik.be, sthomas@leapfrogonline.com
Subject: Re: multiple joins + Order by + LIMIT query performance issue
In-Reply-To: <dcc563d10805090053l2075c4acra2925264040e808b@mail.gmail.com>
References: <938EC908-FB9A-4BFA-950A-053BE3C87085@taktik.be> <1210092220.14833.33.camel@berners-lee> <ED75A52A-2CBC-4EA3-AE1A-E344B08A9682@taktik.be> <1210098273.14833.55.camel@berners-lee> <17BEF74A-6B90-4BAD-8612-3548B616AFC7@taktik.be> <dcc563d10805090053l2075c4acra2925264040e808b@mail.gmail.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