Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BB5E564FD63; Sun, 20 Jul 2008 13:22:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 33330-01; Sun, 20 Jul 2008 13:22:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 8412C64FD27; Sun, 20 Jul 2008 13:22:32 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m6KGMUJl029623; Sun, 20 Jul 2008 12:22:30 -0400 (EDT) To: Tatsuo Ishii cc: er@xs4all.nl, pgsql-patches@postgresql.org, pgsql-hackers@postgresql.org, y-asaba@sraoss.co.jp Subject: Re: [PATCHES] WITH RECUSIVE patches 0717 In-reply-to: <20080721.004216.38709223.t-ishii@sraoss.co.jp> References: <12057.156.83.1.19.1216402224.squirrel@webmail.xs4all.nl> <20080721.004216.38709223.t-ishii@sraoss.co.jp> Comments: In-reply-to Tatsuo Ishii message dated "Mon, 21 Jul 2008 00:42:16 +0900" Date: Sun, 20 Jul 2008 12:22:30 -0400 Message-ID: <29621.1216570950@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/906 X-Sequence-Number: 121166 Tatsuo Ishii 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