Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 362E19F987C for ; Tue, 30 Oct 2007 02:46:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 48665-05 for ; Tue, 30 Oct 2007 02:46:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by postgresql.org (Postfix) with ESMTP id BD2229FA1F8 for ; Tue, 30 Oct 2007 02:46:25 -0300 (ADT) Received: from zmori.markir.net (121-72-67-32.dsl.telstraclear.net [121.72.67.32]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0JQP0035HMPB2M10@smtp3.clear.net.nz> for pgsql-performance@postgresql.org; Tue, 30 Oct 2007 18:46:24 +1300 (NZDT) Date: Tue, 30 Oct 2007 18:46:22 +1300 From: Mark Kirkwood Subject: Re: partitioned table and ORDER BY indexed_field DESC LIMIT 1 In-reply-to: To: Luke Lonergan Cc: Gregory Stark , Heikki Linnakangas , Anton , pgsql-performance@postgresql.org Message-id: <4726C52E.5020909@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: User-Agent: Thunderbird 2.0.0.6 (X11/20071025) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/350 X-Sequence-Number: 27372 Luke Lonergan wrote: > Sure - it's here: > http://momjian.us/mhonarc/patches_hold/msg00381.html > > To clarify - we've fixed this in Greenplum db - the patch as submitted is (hopefully) a hint about how to fix it in Postgres, rather than a working patch... as its full of non-postgres functions and macros: CdbPathLocus_MakeHashed cdbpathlocus_pull_above_projection cdbpullup_findPathKeyItemInTargetList cdbpullup_makeVar cdbpullup_expr Cheers Mark