Re: not exists clause

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Cc: "S Golly" <gollykai(at)gmail(dot)com>
Subject: Re: not exists clause
Date: 2008-01-10 21:50:30
Message-ID: 200801101350.33211.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Kempter 2008-01-10 23:14:54 Best way to index IP data?
Previous Message S Golly 2008-01-10 20:15:53 not exists clause