Re: Any ExecStoreTuple end runs? - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Any ExecStoreTuple end runs?
Date
Msg-id 4B4CB601020000250002E3EC@gw.wicourts.gov
Whole thread Raw
In response to Any ExecStoreTuple end runs?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
Tom Lane  wrote:
"Kevin Grittner"  writes:
>> It's obviously too low level to be the right place to check
>> whether we're in serializable mode and take out locks, but if I
>> look at the callers (like IndexNext or TidNext) which use a valid
>> buffer in a call to ExecStoreTuple, should I be catching all the
>> tuples read from the heap?
> It doesn't really matter, because any patch putting such functionality
> into ExecStoreTuple would be rejected. It's an utterly inappropriate
> place.
Which is what I said.
> I think you'd probably be best off to put the hook in SeqNext,
> IndexNext, etc. Sometimes multiple call sites are the cleanest
> solution.
Which is what I said.
I'm glad we agree.
From your response, I assume that there aren't any end runs to cover.
Thanks,
-Kevin




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Any ExecStoreTuple end runs?
Next
From: Robert Haas
Date:
Subject: Re: Feature patch 1 for plperl [PATCH]