]> git.ipfire.org Git - thirdparty/postgresql.git/commit
logical decoding: process ASSIGNMENT during snapshot build
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 13 Sep 2019 19:36:28 +0000 (16:36 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 13 Sep 2019 19:36:28 +0000 (16:36 -0300)
commit41f3d262693b1d735a3683104e334f1e9b48d7f4
tree6809a0f5e8bf5e5c29f7eb0d195e3656cadcf710
parent82d0ae919ff8e7a9cb9283420a8834c9b9344128
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
src/backend/replication/logical/decode.c