mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Print wal_log_hints in the rm_desc routing of a parameter-change record.
It was an oversight in the original commit. Also note in the sample config file that changing wal_log_hints requires a restart. Michael Paquier. Backpatch to 9.4, where wal_log_hints was added.
This commit is contained in:
parent
f3d7077dad
commit
463dde8def
@ -117,12 +117,15 @@ xlog_desc(StringInfo buf, uint8 xl_info, char *rec)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
appendStringInfo(buf, "parameter change: max_connections=%d max_worker_processes=%d max_prepared_xacts=%d max_locks_per_xact=%d wal_level=%s",
|
appendStringInfo(buf, "parameter change: max_connections=%d max_worker_processes=%d "
|
||||||
|
"max_prepared_xacts=%d max_locks_per_xact=%d "
|
||||||
|
"wal_level=%s wal_log_hints=%s",
|
||||||
xlrec.MaxConnections,
|
xlrec.MaxConnections,
|
||||||
xlrec.max_worker_processes,
|
xlrec.max_worker_processes,
|
||||||
xlrec.max_prepared_xacts,
|
xlrec.max_prepared_xacts,
|
||||||
xlrec.max_locks_per_xact,
|
xlrec.max_locks_per_xact,
|
||||||
wal_level_str);
|
wal_level_str,
|
||||||
|
xlrec.wal_log_hints ? "on" : "off");
|
||||||
}
|
}
|
||||||
else if (info == XLOG_FPW_CHANGE)
|
else if (info == XLOG_FPW_CHANGE)
|
||||||
{
|
{
|
||||||
|
@ -186,6 +186,7 @@
|
|||||||
# open_sync
|
# open_sync
|
||||||
#full_page_writes = on # recover from partial page writes
|
#full_page_writes = on # recover from partial page writes
|
||||||
#wal_log_hints = off # also do full page writes of non-critical updates
|
#wal_log_hints = off # also do full page writes of non-critical updates
|
||||||
|
# (change requires restart)
|
||||||
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
|
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
#wal_writer_delay = 200ms # 1-10000 milliseconds
|
#wal_writer_delay = 200ms # 1-10000 milliseconds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user