pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jim@nasby.net>
To: pgsql-performance@postgresql.org
Subject: Re: How to get the optimizer to use an index with multiple fields
Date: Mon, 28 Apr 2003 13:32:44 -0500
Message-ID: <20030428133244.K66185@flake.decibel.org> (raw)
In-Reply-To: <20030428132143.J66185@flake.decibel.org>
References: <20030428132143.J66185@flake.decibel.org>

On Mon, Apr 28, 2003 at 01:21:43PM -0500, Jim C. Nasby wrote:
> I tried changing this to an EXISTS and it takes over a minute. So in
> this case, the range of runtimes is ~4 seconds (building the temp table
> takes ~0.25 seconds) to over a minute.
 
BTW, I forgot to mention that building the temp table only takes 0.25
seconds if I first disable sequential scans. :/
-- 
Jim C. Nasby (aka Decibel!)                    jim@nasby.net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"




view thread (4+ messages)  latest in thread

Message-ID: <20030428133244.K66185@flake.decibel.org>
Permalink:  ../20030428133244.K66185@flake.decibel.org/
Also on:    postgresql.org/message-id/20030428133244.K66185@flake.decibel.org

 · 

reply

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: jim@nasby.net
  Subject: Re: How to get the optimizer to use an index with multiple fields
  In-Reply-To: <20030428133244.K66185@flake.decibel.org>
  References: <20030428132143.J66185@flake.decibel.org> <20030428133244.K66185@flake.decibel.org>

* 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