Re: Why does txid_current() assign new transaction-id?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why does txid_current() assign new transaction-id?
Дата
Msg-id 19247.1432662657@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why does txid_current() assign new transaction-id?  (Christoph Berg <myon@debian.org>)
Список pgsql-hackers
Christoph Berg <myon@debian.org> writes:
> I think the OP's point was (or should have been), to make txid_current
> not draw a new xid when run outside a transaction block, though it's
> questionable if that wouldn't just add a POLA-violating layer.

Well, the patch as proposed failed to do that, but in any case I don't
see much argument for changing the long-established behavior of that
function.  Better to add another one if you want a read-only monitoring
probe.
        regards, tom lane



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

Предыдущее
От: Christoph Berg
Дата:
Сообщение: Re: Why does txid_current() assign new transaction-id?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: fsync bug faq for publication?