Tatsuo Ishii <ishii(at)postgresql(dot)org> writes:> Thus I think we should avoid this kind of ORDER BY. Probably we should> avoid LIMIT/OFFSET and FOR UPDATE as well.
What of index-optimized SELECT max(...) ?
regards, tom lane