]> granicus.if.org Git - postgresql/commit
Set ActiveSnapshot when logically replaying inserts
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 30 Jul 2018 20:30:07 +0000 (16:30 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 30 Jul 2018 20:30:07 +0000 (16:30 -0400)
commit5dbd0beb8a95fa1de3a931d20102cc9f273fceef
tree5e4e9c7af76349dd62c42ae0dce666b696bc4bbc
parentf6ef3ed43669350e0d5fd5a02ae3be6ec150a64e
Set ActiveSnapshot when logically replaying inserts

Input functions for the inserted tuples may require a snapshot, when
they are replayed by native logical replication.  An example is a domain
with a constraint using a SQL-language function, which prior to this
commit failed to apply on the subscriber side.

Reported-by: Mai Peng <maily.peng@webedia-group.com>
Co-authored-by: Minh-Quan TRAN <qtran@itscaro.me>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/4EB4BD78-BFC3-4D04-B8DA-D53DF7160354@webedia-group.com
Discussion: https://postgr.es/m/153211336163.1404.11721804383024050689@wrigleys.postgresql.org
src/backend/replication/logical/worker.c
src/test/subscription/t/002_types.pl