pgsql: Split the SetSubscriptionRelState function into two

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Split the SetSubscriptionRelState function into two
Date: 2018-04-06 14:03:50
Message-ID: E1f4Ry2-0001xr-9I@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Split the SetSubscriptionRelState function into two

We don't actually need the insert-or-update logic, so it's clearer to
have separate functions for the inserting and updating.

Author: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>
Reviewed-by: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bcf79b5bb648d30696406034a61ce0ca3dcb0dea

Modified Files
--------------
src/backend/catalog/pg_subscription.c | 129 ++++++++++++++++------------
src/backend/commands/subscriptioncmds.c | 8 +-
src/backend/replication/logical/tablesync.c | 34 ++++----
src/include/catalog/pg_subscription_rel.h | 6 +-
4 files changed, 96 insertions(+), 81 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2018-04-06 14:13:12 Re: pgsql: Foreign keys on partitioned tables
Previous Message Pavan Deolasee 2018-04-06 13:23:32 Re: pgsql: New files for MERGE