Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: [PATCH] Lazy xid assingment V2 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] Lazy xid assingment V2
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: [PATCH] Lazy xid assingment V2  (Gregory Stark <[email protected]>)
List pgsql-hackers
Gregory Stark <[email protected]> writes:
> It seems both this and some of the other cases of having to call
> ReadNewTransactionId would be eliminated if we invented a new xid treated
> similarly to current_time() and others which are calculated once per
> transaction and then cached for subsequent accesses. So xid_age() would
> measure relative to a fixed xid, it just wouldn't be *our* xid necessarily.

Hm, so basically call ReadNewTransactionId the first time one of these
functions is used within a given transaction, and save that?  Or we
could use our own transaction ID if one was already assigned at that
point.  Seems reasonable.  Not sure what to call the thing though.
ArbitraryReferenceXID?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Apply a band-aid fix for the problem that 8.2 and up completely
Next
From: "Florian G. Pflug"
Date:
Subject: Re: [PATCH] Lazy xid assingment V2