missing SSI check in heapgettup_pagemode() ?

Started by Alvaro Herreraover 12 years ago3 messages
#1Alvaro Herrera
alvherre@2ndquadrant.com

I was scrolling heapgettup() and heapgettup_pagemode() in parallel, and
noticed that the former calls CheckForSerializableConflictOut() for
tuples read, and the latter doesn't. Is there a reason for this
discrepancy? If so, I think it warrants a comment about the missing
check.

Thanks,

--
�lvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Heikki Linnakangas
hlinnakangas@vmware.com
In reply to: Alvaro Herrera (#1)
Re: missing SSI check in heapgettup_pagemode() ?

On 05.09.2013 20:30, Alvaro Herrera wrote:

I was scrolling heapgettup() and heapgettup_pagemode() in parallel, and
noticed that the former calls CheckForSerializableConflictOut() for
tuples read, and the latter doesn't. Is there a reason for this
discrepancy? If so, I think it warrants a comment about the missing
check.

In page-at-a-time mode, the CheckForSerializableConflictOut() is done in
heapgetpage(). Same with the visibility checks.

- Heikki

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Kevin Grittner
kgrittn@ymail.com
In reply to: Alvaro Herrera (#1)
Re: missing SSI check in heapgettup_pagemode() ?

Alvaro Herrera <alvherre@2ndquadrant.com> wrote:

I was scrolling heapgettup() and heapgettup_pagemode() in parallel, and
noticed that the former calls CheckForSerializableConflictOut() for
tuples read, and the latter doesn't.  Is there a reason for this
discrepancy?  If so, I think it warrants a comment about the missing
check.

That is covered in heapgetpage().

Do you want to offer a patch to add a comment to that effect, or
would you prefer that I do?

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers