pgsql: Set ActiveSnapshot when logically replaying inserts

2018-07-30 Thread Alvaro Herrera
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 subsc

pgsql: Set ActiveSnapshot when logically replaying inserts

2018-07-30 Thread Alvaro Herrera
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 subsc

pgsql: Set ActiveSnapshot when logically replaying inserts

2018-07-30 Thread Alvaro Herrera
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 subsc