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

From: Nikhil Sontakke <nikhils(at)2ndquadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>, Sokolov Yura <y(dot)sokolov(at)postgrespro(dot)ru>, Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>, Dmitry Dolgov <9erthalion6(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: [HACKERS] logical decoding of two-phase transactions
Date: 2018-04-03 10:40:43
Views: Raw Message | Whole Thread | Download mbox
Lists: pgsql-hackers


>> It's certainly a nice future goal to have it all happen automatically,
>> but we don't know what the plugin will do.
> No, fighting too complicated APIs is not unreasonable. And we've found
> an alternative.

PFA, latest patch set.

The LogicalLockTransaction/LogicalUnlockTransaction API implementation
using decode groups now has proper cleanup handling in case there's an
ERROR while holding the logical lock.

Rest of the patches are the same as yesterday.

Other than this, we would want to have pgoutput support for 2PC
decoding to be made optional? In that case we could add an option to
"CREATE SUBSCRIPTION". This will mean adding a new
Anum_pg_subscription_subenable_twophase attribute to Subscription
struct and related processing. Should we go down this route?

Other than this, unless am mistaken, every other issue has been taken
care of. Please do let me know if we think anything is pending in
these patch sets.

Nikhil Sontakke
PostgreSQL/Postgres-XL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
0001-Cleaning-up-of-flags-in-ReorderBufferTXN-structure.0304.patch application/octet-stream 7.3 KB
0002-Introduce-LogicalLockTransaction-LogicalUnlockTransa.0304.patch application/octet-stream 31.2 KB
0003-Support-decoding-of-two-phase-transactions-at-PREPAR.0304.patch application/octet-stream 32.7 KB
0004-pgoutput-output-plugin-support-for-logical-decoding-.0304.patch application/octet-stream 33.2 KB
0005-Teach-test_decoding-plugin-to-work-with-2PC.0304.patch application/octet-stream 25.3 KB
0006-Optional-Additional-test-case-to-demonstrate-decoding-rollbac.0304.patch application/octet-stream 9.6 KB

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Ivanov 2018-04-03 10:47:14 Re: new function for tsquery creartion
Previous Message Anthony Iliopoulos 2018-04-03 10:35:39 Re: PostgreSQL's handling of fsync() errors is unsafe and risks data loss at least on XFS