Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F40BDB5DBC5 for ; Wed, 22 Jun 2011 15:15:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 31362-08 for ; Wed, 22 Jun 2011 18:15:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2.peak6.com (smtp2.peak6.com [38.98.137.9]) by mail.postgresql.org (Postfix) with ESMTP id 87EC4B5DBBF for ; Wed, 22 Jun 2011 15:15:15 -0300 (ADT) X-AuditID: 0a02cb1e-b7b55ae000000a02-df-4e0231310553 Message-ID: <4E023131.2060000@peak6.com> Date: Wed, 22 Jun 2011 13:15:13 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101210 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Scott Marlowe CC: Marti Raudsepp , Magnus Hagander , Svetlin Manavski , Subject: Re: seq scan in the case of max() on the primary key column References: <4DFA4D2F.8020101@peak6.com> <4E01EA4D.3080205@peak6.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.221.50] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLIsWRmVeSWpSXmKPExsXCxcQrpmtkyORnsOwal8WKT3dYLY5vW8hk cX3mOWaLZZ/OM1rMvXuWyYHVY+esu+wem9qOM3vsa5/I5nFh3zT2AJaoBkabxLy8/JLEklSF lNTiZFulAFdHbzOF4JLEvJTEohQFl8zi5JzEzNzUIiWFzBRbJSMlhYKcxOTU3NS8ElulxIKC 1LwUJTsuBQxgA1SWmaeQmpecn5KZl26r5Bnsr2thYWqpa6hkF48ACW0sGRc7mlgLjrNUbFlj 08B4krmLkZNDQsBE4sKDk0wQtpjEhXvr2UBsXgENiYvvH7KA2CwCqhJNXTPZQWw2ATWJhbtv MoLYQgKyEvtXnWMFsfkFhCX2fWgCmykqUCjx7egtZog5ghInZz4BmyMioC3x6M11oF4uDmaB RYwSzR/ugg0VFvCTuHq+kRli6EwmiYVrSkBsTgFHiT1vd4PFmQVsJS7Muc4CYctLbH87B6pe TuJOw3OgozmAHlCQuPfXaQKj0Cwkq2ch6Z6FpHsBI/MqRvHissTkjEyzguLckgJDvYLUxGwz vbzUkk2M4Eg/LbeDccUFxUOMAhyMSjy8AucY/IRYE8uKK3MPMUpwMCuJ8Jr9YfQT4k1JrKxK LcqPLyrNSS0+xKgNDLOJzFLcyfnAJJRXEm9sYKAkzvvF9a2vkEA6MA1kp6YWpBbBVDNxcEo1 MPqXCASu6Km84fIjzeOHRrisy7akmfbCa084qBxV4LTZln0guv7x/R/ucRq3D+68U/EoYs29 sKPzmxKtb3TVxC9Xk8py7W7unCP48tOVjlu8Mbt3/F7925wzKWxLtxDXNQ3VeWq77zv7ujtL V10o0mVboXv7fSVn7mf3ljmH99ttenYk79VMFyWW4oxEQy3mouJEAGBGFSUAAwAA X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/213 X-Sequence-Number: 44146 On 06/22/2011 01:12 PM, Scott Marlowe wrote: > Given that many folks still run< 9.0 in production, the wiki page > should really have a version of that function for older versions, > whether it's long or not. This version does work on anything 8.3 and above. I just lamented on 9.0 because we decided to skip 8.4 in favor of 9.0. And as we use EDB instead of PostgreSQL directly, our 8.3 is actually 8.2. Got that? ;) Sorry for the confusion. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604 312-676-8870 sthomas@peak6.com ______________________________________________ See http://www.peak6.com/email_disclaimer.php for terms and conditions related to this email