pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: S Golly <gollykai@gmail.com>
Subject: Re: not exists clause
Date: Thu, 10 Jan 2008 13:50:30 -0800
Message-ID: <200801101350.33211.josh@agliodbs.com> (raw)
In-Reply-To: <4a5f56930801101215l5ae2d5bdk2db4f1873e0789ca@mail.gmail.com>
References: <4a5f56930801101215l5ae2d5bdk2db4f1873e0789ca@mail.gmail.com>

Golly,

> I cannot get the "not exists" clause of ANSI SQL to execute correctly.
> select t.col11, t.col1... from table1 t where not exists (select 1 from
> table2 where col2 = t.col1);
> table1 has 40M + rows. if that matters.
>
> OS is FreeBSD 6.2, postgresql version 8.2.6

You'll have to post the actual query and error message.  WHERE NOT EXISTS 
has been supported since version 7.1.

-- 
--Josh

Josh Berkus
PostgreSQL @ Sun
San Francisco



view thread (3+ messages)  latest in thread

Message-ID: <200801101350.33211.josh@agliodbs.com>
Permalink:  ../200801101350.33211.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200801101350.33211.josh@agliodbs.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-performance@postgresql.org
  Cc: josh@agliodbs.com, gollykai@gmail.com
  Subject: Re: not exists clause
  In-Reply-To: <200801101350.33211.josh@agliodbs.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