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

From Tom Lane
Subject Re: [PATCH] Lazy xid assingment V2
Date
Msg-id 5208.1188607561@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] Lazy xid assingment V2  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> 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