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

Commite06b2e1

Browse files
committed
Don't disable commit_ts in standby if enabled locally
Bug noticed by Fujii Masao
1 parentcdcae2b commite06b2e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/access/transam/commit_ts.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,14 +583,15 @@ CommitTsParameterChange(bool newvalue, bool oldvalue)
583583
* pg_control. If the old value was already set, we already did this, so
584584
* don't do anything.
585585
*
586-
* If the module is disabled in the master, disable it here too.
586+
* If the module is disabled in the master, disable it here too, unless
587+
* the module is enabled locally.
587588
*/
588589
if (newvalue)
589590
{
590591
if (!track_commit_timestamp&& !oldvalue)
591592
ActivateCommitTs();
592593
}
593-
elseif (oldvalue)
594+
elseif (!track_commit_timestamp&&oldvalue)
594595
DeactivateCommitTs(false);
595596
}
596597

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp