Re: EXISTS / IN - does it work on Postgresql?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: paula(at)cyberlazarus(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: EXISTS / IN - does it work on Postgresql?
Date: 2001-09-19 22:19:45
Message-ID: Pine.BSF.4.21.0109191518210.69806-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On 19 Sep 2001 paula(at)cyberlazarus(dot)net wrote:

> Hello there,
>
> Finally I got a \"yes\" and I\'m moving from Microsoft SQL Server to
> Postgresql. I\'m using PHP4 and PHPLIB to work with query
> abstractions. I have a lot of subqueries like:
>
> WHERE ... EXISTS (SELECT ...)
>
> I was researching and found ambiguous information about this kind of
> subqueries, is that working fine with Postgresql?

In general, yes. Although IN (<subquery>) queries are rather slow right
now and you might want to look at rewriting those as EXISTS (...)
instead (there's an FAQ item on this with a very simple example).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-09-19 22:57:49 Re: EXISTS / IN - does it work on Postgresql?
Previous Message Peter Eisentraut 2001-09-19 21:34:50 Re: Case sensitive file names