More efficient DELETE ... ? - Mailing list pgsql-sql

From The Hermit Hacker
Subject More efficient DELETE ... ?
Date
Msg-id Pine.BSF.4.21.0001221316390.79710-100000@thelab.hub.org
Whole thread Raw
Responses Re: [SQL] More efficient DELETE ... ?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: [SQL] More efficient DELETE ... ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
This looks painful ...

DELETE FROM webhit_referer_raw     WHERE oid IN ( SELECT w.oid                      FROM webhit_referer_raw w,
referrer_datar                     WHERE stat_date < 'Jan 17 2000 15:05:00'                       AND w.referrer_url =
r.referrer);
 

But, reading through the man page, it looks like this about the only way
of doing it?  Or am I missing something as obvious as the UPDATE I asked
about the other day? :(


Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



pgsql-sql by date:

Previous
From: De Moudt Walter
Date:
Subject: Re: [SQL] SQL Things
Next
From: Bruce Momjian
Date:
Subject: Re: [SQL] More efficient DELETE ... ?