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.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to