Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7531C1336FA7 for ; Sat, 26 Feb 2011 17:06:15 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 87623-09 for ; Sat, 26 Feb 2011 21:06:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148158.authsmtp.com (outmail148158.authsmtp.com [62.13.148.158]) by mail.postgresql.org (Postfix) with ESMTP id 374EB1337B49 for ; Sat, 26 Feb 2011 17:06:07 -0400 (AST) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p1QL65br035808; Sat, 26 Feb 2011 21:06:05 GMT Received: from Sidney-Stratton.local (70-36-197-225.dsl.dynamic.sonic.net [70.36.197.225]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p1QL60iN099424; Sat, 26 Feb 2011 21:06:01 GMT Message-ID: <4D696B38.5070603@agliodbs.com> Date: Sat, 26 Feb 2011 13:06:00 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Dave Crooke CC: Dave Johansen , pgsql-performance@postgresql.org Subject: Re: Picking out the most recent row using a time stamp column References: <08B3368E-E623-4E9C-83F5-AB05B471AF4C@seespotcode.net> <4D666A0F020000250003AFCE@gw.wicourts.gov> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: 37dcf278-41ec-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQK c1AAcB19PVdbHwkA AnYJWl5UVldxWy1y axRSaxtca01QXQdv T0pMQFdNFEsoAH19 AB5HLBl7fgFEfDBz YEFiEHNcCBcsd0F1 X0pVQD4bZGY1aH0X UBJRagNUcgFMeh8X Ylh8AT1vNG8XDRoV JSEUBRUEdQ1eIydU RA5FKk8OCVoLE3Y5 QAseVS8iFkADW20p KANuN0UdGklZOw0u MF4sEUkEOhoKaEVV GEVQBSkx X-Authentic-SMTP: 61633136333939.1015:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201102/501 X-Sequence-Number: 42639 Dave, Why not test the windowing version I posted? -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com