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

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org,Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>,Nikhil Sontakke <nikhils(at)2ndquadrant(dot)com>
Cc: 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>,Simon Riggs <simon(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-03-30 17:36:27
Message-ID: 1750517D-1FC6-4C9E-845B-918B6E275A03@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On March 30, 2018 10:27:18 AM PDT, Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com> wrote:
>. Locking
>around plugin callbacks can hold he lock for longer periods of time
>since plugins usually end up writing to network. I think for most
>use-cases of 2PC decoding the latter is more useful as plugin should be
>connected to some kind transaction management solution. Also the time
>should be bounded by things like wal_sender_timeout (or
>statement_timeout for SQL variant of decoding).

Quick thought: Should be simple to release lock when interacting with network. Could also have abort signal lockers.

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-03-30 17:38:08 Re: JIT compiling with LLVM v12.2
Previous Message Petr Jelinek 2018-03-30 17:27:18 Re: [HACKERS] logical decoding of two-phase transactions