txid_current() forces a real xid

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема txid_current() forces a real xid
Дата
Msg-id 201107111459.p6BExS904875@momjian.us
обсуждение исходный текст
Ответы Re: txid_current() forces a real xid
Re: txid_current() forces a real xid
Список pgsql-hackers
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?  Here is the C code:
TransactionIdGetTopTransactionId(void){    if (!TransactionIdIsValid(TopTransactionStateData.transactionId))
AssignTransactionId(&TopTransactionStateData);   return TopTransactionStateData.transactionId;}
 

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


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

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