Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 18FD5B5DBE9 for ; Wed, 29 Jun 2011 16:18:15 -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 40604-01 for ; Wed, 29 Jun 2011 19:18:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og122.obsmtp.com (exprod7og122.obsmtp.com [64.18.2.22]) by mail.postgresql.org (Postfix) with ESMTP id D240DB5DBF4 for ; Wed, 29 Jun 2011 16:18:07 -0300 (ADT) Received: from mail-fx0-f42.google.com ([209.85.161.42]) (using TLSv1) by exprod7ob122.postini.com ([64.18.6.12]) with SMTP ID DSNKTgt6bqt0+a6rZPSbEw3Zvwl9X0P2rp+Q@postini.com; Wed, 29 Jun 2011 12:18:08 PDT Received: by fxe23 with SMTP id 23so1352183fxe.1 for ; Wed, 29 Jun 2011 12:18:05 -0700 (PDT) Received: by 10.223.6.198 with SMTP id a6mr1678667faa.130.1309375085028; Wed, 29 Jun 2011 12:18:05 -0700 (PDT) Received: from [90.190.247.247] (247.247.190.90.dyn.estpak.ee [90.190.247.247]) by mx.google.com with ESMTPS id r10sm1068508fah.2.2011.06.29.12.18.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Jun 2011 12:18:02 -0700 (PDT) Message-ID: <4E0B7A68.5030102@enterprisedb.com> Date: Wed, 29 Jun 2011 22:18:00 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.17) Gecko/20110606 Icedove/3.1.10 MIME-Version: 1.0 To: Kevin Grittner CC: drkp@csail.mit.edu, pgsql-hackers@postgresql.org Subject: Re: SSI modularity questions References: <4E0A0240020000250003ECDA@gw.wicourts.gov> In-Reply-To: <4E0A0240020000250003ECDA@gw.wicourts.gov> 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=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201106/2270 X-Sequence-Number: 190983 On 29.06.2011 00:33, Kevin Grittner wrote: > Heikki Linnakangas wrote: >> On 28.06.2011 20:47, Kevin Grittner wrote: > >> Hmm, the calls in question are the ones in heapgettup() and >> heapgettup_pagemode(), which are subroutines of heap_getnext(). >> heap_getnext() is only used in sequential scans, so it seems safe >> to remove those calls. > > I haven't found anything to the contrary, if I understand correctly, > Dan found the same, and all the tests pass without them. Here's a > patch to remove them. This makes the recently-added > rs_relpredicatelocked boolean field unnecessary, so that's removed in > this patch, too. Thanks, committed. I also moved the PredicateLockRelation() call to heap_beginscan(), per earlier discussion. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com