Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd64e646

Browse files
author
Amit Kapila
committed
Reload configuration more frequently in apply worker.
The apply worker was not reloading the configuration while processingmessages if there is a continuous flow of messages from upstream. It wasalso not reloading the configuration if there is a change in theconfiguration after it has waited for the message and before receiving thenew replication message. This can lead to failure in tests because weexpect that after reload, the behavior of apply worker to respect thechanged GUCs.We found this while analyzing a rare buildfarm failure.Author: Hou ZhijieReviewed-by: Amit KapilaDiscussion:https://postgr.es/m/OS0PR01MB5716AF9079CC0755CD015322947E9@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parent95f0340 commitd64e646

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/backend/replication/logical/worker.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3562,6 +3562,12 @@ LogicalRepApplyLoop(XLogRecPtr last_received)
35623562
intc;
35633563
StringInfoDatas;
35643564

3565+
if (ConfigReloadPending)
3566+
{
3567+
ConfigReloadPending= false;
3568+
ProcessConfigFile(PGC_SIGHUP);
3569+
}
3570+
35653571
/* Reset timeout. */
35663572
last_recv_timestamp=GetCurrentTimestamp();
35673573
ping_sent= false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp