Optimizer for IN (..) ? / Re: Thank you ! Re: Is there any Faster workaround ??

From: Bernd von den Brincken <bvdb(at)asa(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Subject: Optimizer for IN (..) ? / Re: Thank you ! Re: Is there any Faster workaround ??
Date: 2002-04-10 10:24:26
Message-ID: 5.1.0.14.2.20020410122013.01cfdec0@pop.kundenserver.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,

At 09.04.2002 23:32, Rajesh Kumar Mallah <mallah(at)trade-india(dot)com> wrote:
>i think this question has been answered before also in
>this mailing list sorry for asking...
>...
> > How about:
> >
> > DELETE from t_a where exist (select email from t_b where t_b.email =
> > t_a.email)
> >
> > Rajesh Kumar Mallah wrote:
> > > ... 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

Yes this question was posted before - and if so, and if the answer is so
simple - would it not make sense to implement this wisdom in the optimizer?
Regards
// Bernd vdB

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Camila Rocha 2002-04-10 11:19:41 oid and oidvector
Previous Message Gaetano Mendola 2002-04-10 10:03:34 Re: replace NULL