2012/6/18 Tom Lane <tgl@xxxxxxxxxxxxx>
=?KOI8-U?B?96bUwcymyiD0yc3eydvJzg==?= <tivv00@xxxxxxxxx> writes:9.2 will make this all better. These are exactly the type of case where
> Today I've found a query that I thought will be fast turned out to be slow.
> The problem is correlated exists with join - it does not want to make
> correlated nested loop to make exists check.
you need the "parameterized path" stuff.
regards, tom lane
--
Best regards,
Vitalii Tymchyshyn