Optimizing TransactionIdIsCurrentTransactionId() - Mailing list pgsql-hackers

From Simon Riggs
Subject Optimizing TransactionIdIsCurrentTransactionId()
Date
Msg-id CANP8+jKAzzh0U2KaLtmR6urHXDysSLwow56obXZkbDcmK-Eqzg@mail.gmail.com
Whole thread Raw
Responses Re: Optimizing TransactionIdIsCurrentTransactionId()  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
TransactionIdIsCurrentTransactionId() doesn't seem to be well optimized for the case when an xid has not yet been assigned, so for read only transactions.

A patch for this is attached.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Solutions for the Enterprise
Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [HACKERS] Block level parallel vacuum
Next
From: Ranier Vilela
Date:
Subject: RE: [PATCH] Fix possible underflow in expression (maxoff - 1)