mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Don't disable commit_ts in standby if enabled locally
Bug noticed by Fujii Masao
This commit is contained in:
@ -583,14 +583,15 @@ CommitTsParameterChange(bool newvalue, bool oldvalue)
|
|||||||
* pg_control. If the old value was already set, we already did this, so
|
* pg_control. If the old value was already set, we already did this, so
|
||||||
* don't do anything.
|
* don't do anything.
|
||||||
*
|
*
|
||||||
* If the module is disabled in the master, disable it here too.
|
* If the module is disabled in the master, disable it here too, unless
|
||||||
|
* the module is enabled locally.
|
||||||
*/
|
*/
|
||||||
if (newvalue)
|
if (newvalue)
|
||||||
{
|
{
|
||||||
if (!track_commit_timestamp && !oldvalue)
|
if (!track_commit_timestamp && !oldvalue)
|
||||||
ActivateCommitTs();
|
ActivateCommitTs();
|
||||||
}
|
}
|
||||||
else if (oldvalue)
|
else if (!track_commit_timestamp && oldvalue)
|
||||||
DeactivateCommitTs(false);
|
DeactivateCommitTs(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user