Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 62B2F2E0051 for ; Mon, 21 Apr 2008 11:23:22 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 70847-03 for ; Mon, 21 Apr 2008 11:23:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id B75912E002C for ; Mon, 21 Apr 2008 11:23:09 -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 m3LEN6k6010797; Mon, 21 Apr 2008 10:23:08 -0400 (EDT) To: theerasak@thns.co.th cc: pgsql-sql@postgresql.org Subject: Re: Error: could not find pathkey item to sort In-reply-to: <480D3AB5.5010900@thns.co.th> References: <480D3AB5.5010900@thns.co.th> Comments: In-reply-to Theerasak Maneeneim message dated "Mon, 21 Apr 2008 13:09:09 -1200" Date: Mon, 21 Apr 2008 10:23:06 -0400 Message-ID: <10796.1208787786@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/126 X-Sequence-Number: 30665 Theerasak Maneeneim writes: > I had some problem with postgresql 8.3.1. I had got an error > message, ERROR: could not find pathkey item to sort, when > I use this query statement: > SELECT INTO wk_fcstrec_dt DISTINCT MAX(fcstrec_dt) > FROM a_cusfcst This is already reported and fixed, thanks. http://archives.postgresql.org/pgsql-bugs/2008-03/msg00275.php regards, tom lane