delete to slow

From: Ricardo Valença de Assis <valenca(at)campusvirtual(dot)br>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: delete to slow
Date: 2005-04-06 16:45:13
Message-ID: 006701c53ac8$014b27e0$1b00280a@ugf.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello Everybody!

I´m trying to use delete to remove data from one table based on another. The query is this:

DELETE FROM table1 WHERE column1 IN (SELECT column2 FROM table2);

but my table is big, so it takes a lot o time...
Is there a way to use DELETE with INNER JOIN in PostGreSQL?

Thanks!

Att.
Ricardo Valença
UEAD - UGF

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-04-06 17:27:42 Re: delete to slow
Previous Message Joel Fradkin 2005-04-06 14:47:32 Re: Postgresql settings help for 8.0.1