From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: Jean-Luc Lachance <jllachan@nsd.ca>
Cc: PostgResql SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Thank you ! Re: Is there any Faster workaround ??
Date: Wed, 10 Apr 2002 03:02:41 +0530
Message-ID: <3CB35DF8.D26E2055@trade-india.com> (raw)
References: <3CB346F6.1DD7CFB9@trade-india.com>
<3CB356D8.48F8F5F4@nsd.ca>
Thanks so much!
i think this ques. has been answered before also in
this mailing list sorry for asking...
regds
mallah.
Jean-Luc Lachance wrote:
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
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: mallah@trade-india.com, jllachan@nsd.ca
Subject: Re: Thank you ! Re: Is there any Faster workaround ??
In-Reply-To: <3CB35DF8.D26E2055@trade-india.com>
* 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