Re: Why is RegisterPredicateLockingXid called while holding XidGenLock? - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Why is RegisterPredicateLockingXid called while holding XidGenLock?
Date
Msg-id 4DC33339020000250003D364@gw.wicourts.gov
Whole thread Raw
Responses Re: Re: Why is RegisterPredicateLockingXid called while holding XidGenLock?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane  wrote:
> Yeah, I was thinking that it'd be better to pull it out of
> GetNewTransactionId and put it in a higher level.
As long as it is always called when an xid is assigned.  Since this
function appears to be on the only path to that, it should be fine.
> No strong preference about where in AssignTransactionId to put it.
> Is there any chance that it would be significant whether we do it
> before or after taking the lock on the XID (XactLockTableInsert)?
No, but since we need to do it only on a top level assignment, we
could save a couple cycles by putting it on an else on line 456.
-Kevin


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Why is RegisterPredicateLockingXid called while holding XidGenLock?
Next
From: Nick Raj
Date:
Subject: Debug contrib/cube code