"Jamie Walker" <jamie(at)sagaxis(dot)co(dot)uk> writes:> But of course, ORDER BY and LIMIT are not allowed in sub-queries.
FWIW, they are allowed as of 7.1 ...
regards, tom lane