pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dan Ports <drkp@csail.mit.edu>
Cc: pgsql-hackers@postgresql.org, Kevin Grittner <Kevin.Grittner@wicourts.gov>
Subject: Re: Repeated PredicateLockRelation calls during seqscan
Date: Wed, 22 Jun 2011 10:28:19 -0400
Message-ID: <29470.1308752899@sss.pgh.pa.us> (raw)
In-Reply-To: <20110622045850.GN83336@csail.mit.edu>
References: <20110622045850.GN83336@csail.mit.edu>

Dan Ports <drkp@csail.mit.edu> writes:
> I was looking at ExecSeqScan today and noticed that it invokes
> PredicateLockRelation each time it's called, i.e. for each tuple
> returned. Any reason we shouldn't skip that call if
> rs_relpredicatelocked is already set, as in the attached patch?

Why is the call in ExecSeqScan at all, and not in the node startup
function?

			regards, tom lane



view thread (13+ messages)  latest in thread

Message-ID: <29470.1308752899@sss.pgh.pa.us>
Permalink:  ../29470.1308752899@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29470.1308752899@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, drkp@csail.mit.edu, Kevin.Grittner@wicourts.gov
  Subject: Re: Repeated PredicateLockRelation calls during seqscan
  In-Reply-To: <29470.1308752899@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox