Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B3EA11337BC8 for ; Fri, 4 Mar 2011 09:52:17 -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 06890-05 for ; Fri, 4 Mar 2011 13:52:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og112.obsmtp.com (exprod7og112.obsmtp.com [64.18.2.177]) by mail.postgresql.org (Postfix) with ESMTP id 75E0E1337BBC for ; Fri, 4 Mar 2011 09:52:09 -0400 (AST) Received: from source ([209.85.215.176]) (using TLSv1) by exprod7ob112.postini.com ([64.18.6.12]) with SMTP ID DSNKTXDuiV54NfRftWOzI/P7EC+veRauXa9O@postini.com; Fri, 04 Mar 2011 05:52:10 PST Received: by eya28 with SMTP id 28so721180eya.7 for ; Fri, 04 Mar 2011 05:52:08 -0800 (PST) Received: by 10.213.108.129 with SMTP id f1mr429526ebp.67.1299246727288; Fri, 04 Mar 2011 05:52:07 -0800 (PST) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id x54sm1928926eeh.11.2011.03.04.05.52.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Mar 2011 05:52:06 -0800 (PST) Message-ID: <4D70EE85.6010904@enterprisedb.com> Date: Fri, 04 Mar 2011 15:52:05 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: YAMAMOTO Takashi CC: pgsql-bugs@postgresql.org Subject: Re: BUG #5914: locking error in heap_fetch References: <201103040834.p248YKlH032580@wwwmaster.postgresql.org> In-Reply-To: <201103040834.p248YKlH032580@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.2 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3 X-Spam-Level: X-Archive-Number: 201103/102 X-Sequence-Number: 29612 On 04.03.2011 10:34, YAMAMOTO Takashi wrote: > > The following bug has been logged online: > > Bug reference: 5914 > Logged by: YAMAMOTO Takashi > Email address: yamt@mwd.biglobe.ne.jp > PostgreSQL version: 9.1devel > Operating system: NetBSD > Description: locking error in heap_fetch > Details: > > heap_fetch calls CheckForSerializableConflictOut without buffer locked. > it ends up an assertion failure in SetBufferCommitInfoNeedsSave. Thanks, applied. I also added a comment to CheckForSerializableConflictOut, noting that the caller must hold a lock on the page. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com