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-znarw...@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/41f3d262693b1d735a3683104e334f1e9b48d7f4 Modified Files -------------- src/backend/replication/logical/decode.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)