pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ricardo Valença de Assis <valenca@campusvirtual.br>
To: pgsql-admin@postgresql.org
Subject: delete to slow
Date: Wed, 6 Apr 2005 13:45:13 -0300
Message-ID: <006701c53ac8$014b27e0$1b00280a@ugf.br> (raw)

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

view thread (18+ messages)  latest in thread

Message-ID: <006701c53ac8$014b27e0$1b00280a@ugf.br>
Permalink:  ../006701c53ac8$014b27e0$1b00280a@ugf.br/
Also on:    postgresql.org/message-id/006701c53ac8$014b27e0$1b00280a@ugf.br

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: valenca@campusvirtual.br
  Subject: Re: delete to slow
  In-Reply-To: <006701c53ac8$014b27e0$1b00280a@ugf.br>
  References: <006701c53ac8$014b27e0$1b00280a@ugf.br>

* 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