Re: [HACKERS] logical decoding of two-phase transactions

Поиск
Список
Период
Сортировка
От Konstantin Knizhnik
Тема Re: [HACKERS] logical decoding of two-phase transactions
Дата
Msg-id 589241FB.8060509@postgrespro.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] logical decoding of two-phase transactions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 02/01/2017 10:32 PM, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> Also, including the GID in the WAL for each COMMIT/ABORT PREPARED
>> doesn't seem inordinately expensive to me.
> I'm confused ... isn't it there already?  If not, how do we handle
> reconstructing 2PC state from WAL at all?
>
>             regards, tom lane
>
>
Right now logical decoding ignores prepare and take in account only "commit prepared":
           /*            * Currently decoding ignores PREPARE TRANSACTION and will just            * decode the
transactionwhen the COMMIT PREPARED is sent or            * throw away the transaction's contents when a ROLLBACK
PREPARED           * is received. In the future we could add code to expose prepared            * transactions in the
changestreamallowing for a kind of            * distributed 2PC.            */
 

For some scenarios it works well, but if we really need prepared state at replica (as in case of multimaster), then it
isnot enough.
 

-- 
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company




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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: \if, \elseif, \else, \endif (was Re: [HACKERS] PSQL commands:\quit_if, \quit_unless)
Следующее
От: Konstantin Knizhnik
Дата:
Сообщение: Re: [HACKERS] Deadlock in XLogInsert at AIX