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

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Ajin Cherian <itsajin(at)gmail(dot)com>
Cc: Peter Smith <smithpb2250(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] logical decoding of two-phase transactions
Date: 2020-11-18 04:40:21
Message-ID: CAA4eK1KchSrJfgne42s+RvkOyxxWD+AYDxxwxdXf06_+2s=w8Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 16, 2020 at 12:55 PM Ajin Cherian <itsajin(at)gmail(dot)com> wrote:
>
> Updated with a new test case
> (contrib/test_decoding/t/002_twophase-streaming.pl) that tests
> concurrent aborts during streaming prepare. Had to make a few changes
> to the test_decoding stream_start callbacks to handle
> "check-xid-aborted"
> the same way it was handled in the non stream callbacks.
>

Why did you make a change in stream_start API? I think it should be
*_change and *_truncate APIs because the concurrent abort can happen
while decoding any intermediate change. If you agree then you can
probably take that code into a separate function and call it from the
respective APIs.

In 0003,
contrib/test_decoding/t/002_twophase-streaming.pl | 102 +++++++++

The naming of the file seems to be inconsistent with other files. It
should be 002_twophase_streaming.pl

Other than this, please find attached rebased patch set. It needs
rebase after latest commit 9653f24ad8307f393de51e0a64d9b10a49efa6e3.

--
With Regards,
Amit Kapila.

Attachment Content-Type Size
v21-0001-Support-2PC-txn-base.patch application/octet-stream 40.1 KB
v21-0002-Support-2PC-txn-backend.patch application/octet-stream 30.2 KB
v21-0003-Support-2PC-test-cases-for-test_decoding.patch application/octet-stream 37.5 KB
v21-0004-Support-2PC-txn-spoolfile.patch application/octet-stream 3.9 KB
v21-0005-Support-2PC-txn-pgoutput.patch application/octet-stream 21.4 KB
v21-0006-Support-2PC-txn-subscriber-tests.patch application/octet-stream 60.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2020-11-18 05:06:56 Re: Tab complete for CREATE OR REPLACE TRIGGER statement
Previous Message Amit Kapila 2020-11-18 03:44:03 Re: [HACKERS] logical decoding of two-phase transactions