!6434 修复发布订阅发送发布端主备信息的逻辑bug
Merge pull request !6434 from pengjiong/fix_col
This commit is contained in:
@ -288,8 +288,8 @@ static void pgoutput_commit_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *t
|
||||
* Send the newest connection information to the subscriber,
|
||||
* when the connection information about the standby changes.
|
||||
*/
|
||||
if ((t_thrd.publication_cxt.updateConninfoNeeded && ReplconninfoChanged()) ||
|
||||
t_thrd.publication_cxt.firstTimeSendConninfo) {
|
||||
if (t_thrd.publication_cxt.updateConninfoNeeded &&
|
||||
(ReplconninfoChanged() || t_thrd.publication_cxt.firstTimeSendConninfo)) {
|
||||
StringInfoData standbysInfo;
|
||||
initStringInfo(&standbysInfo);
|
||||
|
||||
|
||||
@ -9,8 +9,15 @@ SET standard_conforming_strings = on;
|
||||
SET check_function_bodies = false;
|
||||
SET session_replication_role = replica;
|
||||
SET client_min_messages = warning;
|
||||
SET enable_dump_trigger_definer = on;
|
||||
|
||||
--
|
||||
-- Name: BEHAVIORCOMPAT; Type: BEHAVIORCOMPAT; Schema: -; Owner:
|
||||
--
|
||||
|
||||
SET behavior_compat_options = '';
|
||||
|
||||
|
||||
--
|
||||
-- Name: LENGTHSEMANTICS; Type: LENGTHSEMANTICS; Schema: -; Owner:
|
||||
--
|
||||
|
||||
@ -9,8 +9,15 @@ SET standard_conforming_strings = on;
|
||||
SET check_function_bodies = false;
|
||||
SET session_replication_role = replica;
|
||||
SET client_min_messages = warning;
|
||||
SET enable_dump_trigger_definer = on;
|
||||
|
||||
--
|
||||
-- Name: BEHAVIORCOMPAT; Type: BEHAVIORCOMPAT; Schema: -; Owner:
|
||||
--
|
||||
|
||||
SET behavior_compat_options = '';
|
||||
|
||||
|
||||
--
|
||||
-- Name: LENGTHSEMANTICS; Type: LENGTHSEMANTICS; Schema: -; Owner:
|
||||
--
|
||||
|
||||
@ -9,8 +9,15 @@ SET standard_conforming_strings = on;
|
||||
SET check_function_bodies = false;
|
||||
SET session_replication_role = replica;
|
||||
SET client_min_messages = warning;
|
||||
SET enable_dump_trigger_definer = on;
|
||||
|
||||
--
|
||||
-- Name: BEHAVIORCOMPAT; Type: BEHAVIORCOMPAT; Schema: -; Owner:
|
||||
--
|
||||
|
||||
SET behavior_compat_options = '';
|
||||
|
||||
|
||||
--
|
||||
-- Name: LENGTHSEMANTICS; Type: LENGTHSEMANTICS; Schema: -; Owner:
|
||||
--
|
||||
@ -51,7 +58,7 @@ COPY public.test1 (a, b) FROM stdin;
|
||||
-- Name: mypub; Type: PUBLICATION; Schema: -; Owner: gauss
|
||||
--
|
||||
|
||||
CREATE PUBLICATION mypub FOR ALL TABLES WITH (publish = 'insert, update, delete',ddl = 'table');
|
||||
CREATE PUBLICATION mypub FOR ALL TABLES WITH (publish = 'insert, update, delete, truncate',ddl = 'table');
|
||||
|
||||
|
||||
ALTER PUBLICATION mypub OWNER TO gauss;
|
||||
|
||||
@ -9,8 +9,15 @@ SET standard_conforming_strings = on;
|
||||
SET check_function_bodies = false;
|
||||
SET session_replication_role = replica;
|
||||
SET client_min_messages = warning;
|
||||
SET enable_dump_trigger_definer = on;
|
||||
|
||||
--
|
||||
-- Name: BEHAVIORCOMPAT; Type: BEHAVIORCOMPAT; Schema: -; Owner:
|
||||
--
|
||||
|
||||
SET behavior_compat_options = '';
|
||||
|
||||
|
||||
--
|
||||
-- Name: LENGTHSEMANTICS; Type: LENGTHSEMANTICS; Schema: -; Owner:
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user