pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: IN, EXISTS or ANY?
Date: Sun, 28 Apr 2002 22:24:53 -0700
Message-ID: <web-1387410@davinci.ethosmedia.com> (raw)
In-Reply-To: <17935.1020056063@sss.pgh.pa.us>

Tom,

> But EXISTS is an entirely different animal which is often faster
> ... isn't that in the FAQ?

OK, still true, then hey?  So for subqueries where I expect a
medium-to-large result set, I should use EXISTS.  Got it.

BTW, just tried the new CURSOR implementation for PL/pgSQL for the
first time.  Nice work, guys!

-Josh



view thread (5+ messages)  latest in thread

Message-ID: <web-1387410@davinci.ethosmedia.com>
Permalink:  ../web-1387410@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-1387410@davinci.ethosmedia.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us
  Subject: Re: IN, EXISTS or ANY?
  In-Reply-To: <web-1387410@davinci.ethosmedia.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