git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 15ce775) | patch
Fix updating of pg_subscription_rel from workers
Wed, 7 Jun 2017 17:49:14 +0000 (13:49 -0400)
Wed, 7 Jun 2017 17:49:14 +0000 (13:49 -0400)
commit 644ea35fc1352d845299563c7ddfb8b524ed27d9
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>
src/backend/catalog/pg_subscription.c diff | blob | blame | history
src/backend/commands/subscriptioncmds.c diff | blob | blame | history
src/backend/replication/logical/tablesync.c diff | blob | blame | history
src/include/catalog/pg_subscription_rel.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /