From 1526da8444651c4ea1663fa27bc7c15c04326f92 Mon Sep 17 00:00:00 2001 From: Hou Zhijie Date: Wed, 31 Jan 2024 11:25:25 +0800 Subject: [PATCH] clean up for 776621a5 Improve the document in pg_dump and remove one spurious blank line. --- doc/src/sgml/ref/pg_dump.sgml | 4 +--- src/backend/commands/subscriptioncmds.c | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml index f8ae4220e1..0caf56e0e0 100644 --- a/doc/src/sgml/ref/pg_dump.sgml +++ b/doc/src/sgml/ref/pg_dump.sgml @@ -1591,9 +1591,7 @@ CREATE DATABASE foo WITH TEMPLATE template0; information might have to be changed. If the subscription needs to be enabled for failover, - then same needs to be done by executing - - ALTER SUBSCRIPTION ... SET (failover = true) + execute ALTER SUBSCRIPTION ... SET (failover = true) after the slot has been created. It might also be appropriate to truncate the target tables before initiating a new full table copy. If users intend to copy initial data during refresh they must create the slot with diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index b647a81fc8..420833644a 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -73,7 +73,6 @@ #define SUBOPT_LSN 0x00004000 #define SUBOPT_ORIGIN 0x00008000 - /* check if the 'val' has 'bits' set */ #define IsSet(val, bits) (((val) & (bits)) == (bits)) -- 2.30.0.windows.2