Re: eXtensible Transaction Manager API

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: eXtensible Transaction Manager API
Дата
Msg-id CANP8+j+EWdXtDVgbiBLJKun9pPZ5NOs8yipVtKsv_HHHHqKrfw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: eXtensible Transaction Manager API  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Список pgsql-hackers
On 2 November 2015 at 13:24, Konstantin Knizhnik <k.knizhnik@postgrespro.ru> wrote:
PostgreSQL assumes that top-level xid commit is atomic, along with all of its subtransactions. So the API having access to only Get/Set at the xid level would not work. We would need TransactionIdSetTreeStatus() rather than just SetStatus. GetStatus is not atomic.

XTM API has function SetTransactionStatus but it actually encapsulate TransactionIdSetTreeStatus.

OK, thanks.
 
At present, I can't tell whether you need subtrans and multixact calls in the API as well. I would imagine we probably do, though we might imagine an implementation that didn't support those concepts.

Postgres-XL doesn't support subtransactions. Neither did we at this moment.
Support of subtransactions will be our next step.

OK. I guess it depends where we want to put the patch; discussion here means in-core, so for it to go in here, we do need subxacts etc. 

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Minor clarifying changes to abbreviated key abort code comments
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [patch] to build docs on Mac OS X El Capitan with MacPorts