pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: logical decoding: process ASSIGNMENT during snapshot build
Date: Fri, 13 Sep 2019 19:40:17 +0000
Message-ID: <E1i8rQX-00047O-PH@gemulon.postgresql.org> (raw)

logical decoding: process ASSIGNMENT during snapshot build

Most WAL records are ignored in early SnapBuild snapshot build phases.
But it's critical to process some of them, so that later messages have
the correct transaction state after the snapshot is completely built; in
particular, XLOG_XACT_ASSIGNMENT messages are critical in order for
sub-transactions to be correctly assigned to their parent transactions,
or at least one assert misbehaves, as reported by Ildar Musin.

Diagnosed-by: Masahiko Sawada
Author: Masahiko Sawada
Discussion: https://postgr.es/m/CAONYFtOv+Er1p3WAuwUsy1zsCFrSYvpHLhapC_fMD-zNaRWxYg@mail.gmail.com

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e8c7f40a1f8ad2a017ff646f19ef42b07bf4ab51

Modified Files
--------------
src/backend/replication/logical/decode.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1i8rQX-00047O-PH@gemulon.postgresql.org>
Permalink:  ../E1i8rQX-00047O-PH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i8rQX-00047O-PH@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: logical decoding: process ASSIGNMENT during snapshot build
  In-Reply-To: <E1i8rQX-00047O-PH@gemulon.postgresql.org>
  References: <E1i8rQX-00047O-PH@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox