Get a snapshot before COPY in table sync
authorPeter Eisentraut <[email protected]>
Wed, 2 Aug 2017 14:59:01 +0000 (10:59 -0400)
committerPeter Eisentraut <[email protected]>
Wed, 2 Aug 2017 15:34:42 +0000 (11:34 -0400)
commitcf652018332819716b10c9de9ce80c81284d6815
treeb25c5796590c226627c543d742a1bead59f06c43
parentf352f91cbf2f662c4f043d3650010b02da0cde1c
Get a snapshot before COPY in table sync

This fixes a crash if the local table has a function index and the
function makes non-immutable calls.

Reported-by: Scott Milliken <[email protected]>
Author: Masahiko Sawada <[email protected]>
src/backend/replication/logical/tablesync.c