eliminating records not in (select id ... so SLOW? - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject eliminating records not in (select id ... so SLOW?
Date
Msg-id 20080731234530.32f0f62e@dawn.webthatworks.it
Whole thread Raw
Responses Re: eliminating records not in (select id ... so SLOW?  (Lennin Caro <lennin.caro@yahoo.com>)
Re: eliminating records not in (select id ... so SLOW?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
I'm doing something like:

delete from table1 where id not in (select id from table2).

both id are indexed.

table1 contains ~1M record table2 contains ~ 600K record and id is
unique.

The box is a 2x dual core Xeon (below 2GHz) with 4Gb ram.
Default debian etch setup.

It has been working for over 2h now.

Is it normal?

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: Robert Treat
Date:
Subject: Re: Using PostGres general distribution
Next
From: Lennin Caro
Date:
Subject: Re: eliminating records not in (select id ... so SLOW?