Re: txid_current() forces a real xid

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: txid_current() forces a real xid
Дата
Msg-id 12786.1310397486@sss.pgh.pa.us
обсуждение исходный текст
Ответ на txid_current() forces a real xid  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Right now, calling txid_current() causes a session to create a
> non-virtual xid if not already assigned, so observing the xid creates
> it, which seems kind of odd.  Is that intended?

GetTopTransactionId (and friends) should only be called in places where
the intent is to assign an xid if we haven't already got one.  I'm not
sure what the use case is for txid_current(), but it's at least
plausible that applications using it would have the same intention.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Full GUID support
Следующее
От: Florian Pflug
Дата:
Сообщение: Re: Need help understanding pg_locks