From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Sacks <josh.sacks@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Not using Primary Key in query
Date: Sat, 29 May 2004 01:06:05 -0400
Message-ID: <15004.1085807165@sss.pgh.pa.us> (raw)
In-Reply-To: <b31c861a04052511379c8f62e@mail.gmail.com>
References: <b31c861a04052511379c8f62e@mail.gmail.com>
Josh Sacks <josh.sacks@gmail.com> writes:
> I can't understand what's going on in this simple query:
If you are using anything older than PG 7.4, you should not expect good
performance from WHERE ... IN (sub-SELECT) queries. There's essentially
no optimization happening there.
regards, tom lane
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: tgl@sss.pgh.pa.us, josh.sacks@gmail.com
Subject: Re: Not using Primary Key in query
In-Reply-To: <15004.1085807165@sss.pgh.pa.us>
* 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