pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Luc Lachance <jllachan@nsd.ca>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: PostgResql SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Is there any Faster workaround ??
Date: Tue, 09 Apr 2002 17:02:16 -0400
Message-ID: <3CB356D8.48F8F5F4@nsd.ca> (raw)
References: <3CB346F6.1DD7CFB9@trade-india.com>

How about:

DELETE  from t_a where exist (select email from t_b where t_b.email =
t_a.email)

Rajesh Kumar Mallah wrote:
> 
> Hi folks,
> 
> We require to do below or similar quite often
> 
> DELETE  from t_a where email in (select email from t_b);
> 
> everyone knows "IN" is pain fully slow currently in pgsql
> is the any fster alternative to above query
> 
> regds
> Mallah.
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org



view thread (3+ messages)

Message-ID: <3CB356D8.48F8F5F4@nsd.ca>
Permalink:  ../3CB356D8.48F8F5F4@nsd.ca/
Also on:    postgresql.org/message-id/3CB356D8.48F8F5F4@nsd.ca

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jllachan@nsd.ca, mallah@trade-india.com
  Subject: Re: Is there any Faster workaround ??
  In-Reply-To: <3CB356D8.48F8F5F4@nsd.ca>

* 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