</listitem>
</varlistentry>
- <varlistentry id="guc-wal-log-hintbits" xreflabel="wal_log_hintbits">
- <term><varname>wal_log_hintbits</varname> (<type>boolean</type>)</term>
+ <varlistentry id="guc-wal-log-hints" xreflabel="wal_log_hints">
+ <term><varname>wal_log_hints</varname> (<type>boolean</type>)</term>
<indexterm>
- <primary><varname>wal_log_hintbits</> configuration parameter</primary>
+ <primary><varname>wal_log_hints</> configuration parameter</primary>
</indexterm>
<listitem>
<para>
cutoff_xid);
/*
- * If data checksums are enabled (or wal_log_hintbits=on), we
+ * If data checksums are enabled (or wal_log_hints=on), we
* need to protect the heap page from being torn.
*/
if (XLogHintBitIsNeeded())
char *XLogArchiveCommand = NULL;
bool EnableHotStandby = false;
bool fullPageWrites = true;
-bool walLogHintbits = false;
+bool walLogHints = false;
bool log_checkpoints = false;
int sync_method = DEFAULT_SYNC_METHOD;
int wal_level = WAL_LEVEL_MINIMAL;
ControlFile->max_prepared_xacts = max_prepared_xacts;
ControlFile->max_locks_per_xact = max_locks_per_xact;
ControlFile->wal_level = wal_level;
- ControlFile->wal_log_hintbits = walLogHintbits;
+ ControlFile->wal_log_hints = walLogHints;
ControlFile->data_checksum_version = bootstrap_data_checksum_version;
/* some additional ControlFile fields are set in WriteControlFile() */
XLogReportParameters(void)
{
if (wal_level != ControlFile->wal_level ||
- walLogHintbits != ControlFile->wal_log_hintbits ||
+ walLogHints != ControlFile->wal_log_hints ||
MaxConnections != ControlFile->MaxConnections ||
max_worker_processes != ControlFile->max_worker_processes ||
max_prepared_xacts != ControlFile->max_prepared_xacts ||
xlrec.max_prepared_xacts = max_prepared_xacts;
xlrec.max_locks_per_xact = max_locks_per_xact;
xlrec.wal_level = wal_level;
- xlrec.wal_log_hintbits = walLogHintbits;
+ xlrec.wal_log_hints = walLogHints;
rdata.buffer = InvalidBuffer;
rdata.data = (char *) &xlrec;
ControlFile->max_prepared_xacts = max_prepared_xacts;
ControlFile->max_locks_per_xact = max_locks_per_xact;
ControlFile->wal_level = wal_level;
- ControlFile->wal_log_hintbits = walLogHintbits;
+ ControlFile->wal_log_hints = walLogHints;
UpdateControlFile();
}
}
ControlFile->max_prepared_xacts = xlrec.max_prepared_xacts;
ControlFile->max_locks_per_xact = xlrec.max_locks_per_xact;
ControlFile->wal_level = xlrec.wal_level;
- ControlFile->wal_log_hintbits = walLogHintbits;
+ ControlFile->wal_log_hints = walLogHints;
/*
* Update minRecoveryPoint to ensure that if recovery is aborted, we
},
{
- {"wal_log_hintbits", PGC_POSTMASTER, WAL_SETTINGS,
+ {"wal_log_hints", PGC_POSTMASTER, WAL_SETTINGS,
gettext_noop("Writes full pages to WAL when first modified after a checkpoint, even for a non-critical modifications"),
NULL
},
- &walLogHintbits,
+ &walLogHints,
false,
NULL, NULL, NULL
},
# fsync_writethrough
# open_sync
#full_page_writes = on # recover from partial page writes
-#wal_log_hintbits = off # also do full pages writes of non-critical updates
+#wal_log_hints = off # also do full pages writes of non-critical updates
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
# (change requires restart)
#wal_writer_delay = 200ms # 1-10000 milliseconds
ControlFile.backupEndRequired ? _("yes") : _("no"));
printf(_("Current wal_level setting: %s\n"),
wal_level_str(ControlFile.wal_level));
- printf(_("Current wal_log_hintbits setting: %s\n"),
- ControlFile.wal_log_hintbits ? _("on") : _("off"));
+ printf(_("Current wal_log_hints setting: %s\n"),
+ ControlFile.wal_log_hints ? _("on") : _("off"));
printf(_("Current max_connections setting: %d\n"),
ControlFile.MaxConnections);
printf(_("Current max_worker_processes setting: %d\n"),
/* minRecoveryPoint, backupStartPoint and backupEndPoint can be left zero */
ControlFile.wal_level = WAL_LEVEL_MINIMAL;
- ControlFile.wal_log_hintbits = false;
+ ControlFile.wal_log_hints = false;
ControlFile.MaxConnections = 100;
ControlFile.max_worker_processes = 8;
ControlFile.max_prepared_xacts = 0;
* anyway at startup.
*/
ControlFile.wal_level = WAL_LEVEL_MINIMAL;
- ControlFile.wal_log_hintbits = false;
+ ControlFile.wal_log_hints = false;
ControlFile.MaxConnections = 100;
ControlFile.max_worker_processes = 8;
ControlFile.max_prepared_xacts = 0;
extern char *XLogArchiveCommand;
extern bool EnableHotStandby;
extern bool fullPageWrites;
-extern bool walLogHintbits;
+extern bool walLogHints;
extern bool log_checkpoints;
extern int num_xloginsert_slots;
* we have to protect them against torn page writes. When you only set
* individual bits on a page, it's still consistent no matter what combination
* of the bits make it to disk, but the checksum wouldn't match. Also WAL-log
- * them if forced by wal_log_hintbits=on.
+ * them if forced by wal_log_hints=on.
*/
-#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || walLogHintbits)
+#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || walLogHints)
/* Do we need to WAL-log information required only for Hot Standby and logical replication? */
#define XLogStandbyInfoActive() (wal_level >= WAL_LEVEL_HOT_STANDBY)
int max_prepared_xacts;
int max_locks_per_xact;
int wal_level;
- bool wal_log_hintbits;
+ bool wal_log_hints;
} xl_parameter_change;
/* logs restore point */
* or hot standby.
*/
int wal_level;
- bool wal_log_hintbits;
+ bool wal_log_hints;
int MaxConnections;
int max_worker_processes;
int max_prepared_xacts;