Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C00651337B68 for ; Fri, 22 Apr 2011 20:10:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 67154-01 for ; Fri, 22 Apr 2011 23:10:39 +0000 (UTC) X-Greylist: delayed 05:13:25.000008 by SQLgrey-1.7.6 Received: from mail-px0-f174.google.com (mail-px0-f174.google.com [209.85.212.174]) by mail.postgresql.org (Postfix) with ESMTP id 5F5871337BA3 for ; Fri, 22 Apr 2011 20:10:38 -0300 (ADT) Received: by pxi15 with SMTP id 15so701388pxi.33 for ; Fri, 22 Apr 2011 16:10:38 -0700 (PDT) Received: by 10.68.39.102 with SMTP id o6mr2362615pbk.120.1303513838644; Fri, 22 Apr 2011 16:10:38 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-122-86.sd.sd.cox.net [70.167.122.86]) by mx.google.com with ESMTPS id i7sm2267362pbs.7.2011.04.22.16.10.37 (version=SSLv3 cipher=OTHER); Fri, 22 Apr 2011 16:10:37 -0700 (PDT) Message-ID: <4DB20AEC.90400@emolecules.com> Date: Fri, 22 Apr 2011 16:10:36 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Tom Lane CC: "pgsql-admin@postgresql.org" Subject: Re: select for update References: <4DB1BFC2.7020806@emolecules.com> <10313.1303505924@sss.pgh.pa.us> In-Reply-To: <10313.1303505924@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/214 X-Sequence-Number: 37395 On 4/22/11 1:58 PM, Tom Lane wrote: > Craig James writes: >> select objectid from archive where db_id is null limit 1 for update > The interaction between LIMIT and FOR UPDATE changed in 9.0 ... what > PG version are you using? 8.4.4 thanks, Craig > regards, tom lane >