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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why does txid_current() assign new transaction-id?
Дата
Msg-id 14207.1432650862@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Why does txid_current() assign new transaction-id?  (Naoya Anzai <nao-anzai@xc.jp.nec.com>)
Ответы Re: Why does txid_current() assign new transaction-id?  (Christoph Berg <myon@debian.org>)
Список pgsql-hackers
Naoya Anzai <nao-anzai@xc.jp.nec.com> writes:
> I have a question about txid_current().
> it is "Why does txid_current() assign new transaction-id?".

Consider
begin;select txid_current();insert into my_table ...;commit;

If we changed the code as you propose, the result of the SELECT would
no longer have anything to do with the XID used for the insertion.
        regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: brin regression test intermittent failures
Следующее
От: Tom Lane
Дата:
Сообщение: Re: fsync-pgdata-on-recovery tries to write to more files than previously