Re: [PATCH] Lazy xid assingment V2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Lazy xid assingment V2
Дата
Msg-id 5208.1188607561@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Lazy xid assingment V2  (Gregory Stark <stark@enterprisedb.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Apply a band-aid fix for the problem that 8.2 and up completely
Следующее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: [PATCH] Lazy xid assingment V2