Correlated subselect in regression test

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Correlated subselect in regression test
Date: 2005-06-08 10:05:29
Message-ID: 200506081205.29970.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The regression test file subselect.sql contains the following query under the
heading "Correlated subselects":

SELECT '' AS five, f1 AS "Correlated Field"
FROM SUBSELECT_TBL
WHERE (f1, f2) IN (SELECT f2, CAST(f3 AS int4) FROM SUBSELECT_TBL
WHERE f3 IS NOT NULL);

It has been pointed out to me that there is no correlation in this query. Is
there some other special purpose to this query or is it simply categorized
wrongly?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Atsushi Ogawa 2005-06-08 12:32:01 Re: [PATCHES] regexp_replace
Previous Message Andreas Pflug 2005-06-08 08:52:54 Re: linuxtag 2005