Unfortunately I realized a bit late that v4 can cause a logical
replication crash because the apply worker doesn't have es_snapshot
set. This seems to be an oversight as CreateExecutorState documents
that the caller has to initialize es_snapshot, but
create_edata_for_relation never does so in worker.c

The attached patch sets it and adds a simple test case that shows the problem.

Attachment: 0001-Fix-crash-in-logical-replication-apply-worker-at-SER.patch
Description: Binary data

Reply via email to