Fix updating of pg_subscription_rel from workers

Peter Eisentraut <peter_e@gmx.net>

Commit: 644ea35fc1352d845299563c7ddfb8b524ed27d9
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-06-07T17:49:14Z
Releases: 10.0
Fix updating of pg_subscription_rel from workers

A logical replication worker should not insert new rows into
pg_subscription_rel, only update existing rows, so that there are no
races if a concurrent refresh removes rows.  Adjust the API to be able
to choose that behavior.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reported-by: tushar <tushar.ahuja@enterprisedb.com>

Files