Re: subselect field "problem" - Mailing list pgsql-general

From Thomas H.
Subject Re: subselect field "problem"
Date
Msg-id 473378D7.4070604@alternize.com
Whole thread Raw
In response to Re: subselect field "problem"  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general

i was writing the query below containing a subquery. by mistake, i 
referenced a field from the main table in the subquery, leading to a 
very strange (but working??) result. the planner announced a insanely 
high startup cost, but the query itself finished pretty quickly.   
Pick up any SQL book and read up on correlated subqueries.

Have a nice day, 
thanks! i didn't knew this term. the result is pretty obvious now, and so is the high cost prediction.

regards,
thomas

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: subselect field "problem"
Next
From: Simon Riggs
Date:
Subject: Re: "Resurrected" data files - problem?