aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/commit_ts.h
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2015-12-03 19:22:31 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2015-12-03 19:22:31 -0300
commit16e8e62d274a6026045bf809da38bc8ac33b9185 (patch)
treee986630771c22df3036a703086424c4e98896854 /src/include/access/commit_ts.h
parent07338cb7425ee661ea2b80c1a3826bee1bc1a1de (diff)
downloadpostgresql-16e8e62d274a6026045bf809da38bc8ac33b9185.tar.gz
postgresql-16e8e62d274a6026045bf809da38bc8ac33b9185.zip
Further tweak commit_timestamp behavior
As pointed out by Fujii Masao, we weren't quite there on a standby behaving sanely: first because we were failing to acquire the correct state in the case where no XLOG_PARAMETER_CHANGE message was sent (because a checkpoint had already happened after the setting was changed in the master, and then the standby was restarted); and second because promoting the standby with the feature enabled failed to activate it if the master had the feature disabled. This patch fixes both those misbehaviors hopefully without re-introducing any old problems. Also change the hint emitted in a standby together with the error message about the feature being disabled, to make it point out that the place to chance the setting is the master. Otherwise, if the setting is already enabled in the standby, it is very confusing to have it say that the setting must be enabled ... Authors: Álvaro Herrera, Petr Jelínek. Backpatch to 9.5.
Diffstat (limited to 'src/include/access/commit_ts.h')
-rw-r--r--src/include/access/commit_ts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/commit_ts.h b/src/include/access/commit_ts.h
index 3844bb30ff2..f5b39691e71 100644
--- a/src/include/access/commit_ts.h
+++ b/src/include/access/commit_ts.h
@@ -34,7 +34,7 @@ extern Size CommitTsShmemBuffers(void);
extern Size CommitTsShmemSize(void);
extern void CommitTsShmemInit(void);
extern void BootStrapCommitTs(void);
-extern void StartupCommitTs(bool force_enable);
+extern void StartupCommitTs(bool enabled);
extern void CommitTsParameterChange(bool xlrecvalue, bool pgcontrolvalue);
extern void CompleteCommitTsInitialization(void);
extern void ShutdownCommitTs(void);