Skip to content

Commit c846e67

Browse files
committed
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.
1 parent ebc2b68 commit c846e67

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/backend/access/rmgrdesc/xlogdesc.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,15 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
108108
}
109109
}
110110

111-
appendStringInfo(buf, "max_connections=%d max_worker_processes=%d max_prepared_xacts=%d max_locks_per_xact=%d wal_level=%s",
111+
appendStringInfo(buf, "max_connections=%d max_worker_processes=%d "
112+
"max_prepared_xacts=%d max_locks_per_xact=%d "
113+
"wal_level=%s wal_log_hints=%s",
112114
xlrec.MaxConnections,
113115
xlrec.max_worker_processes,
114116
xlrec.max_prepared_xacts,
115117
xlrec.max_locks_per_xact,
116-
wal_level_str);
118+
wal_level_str,
119+
xlrec.wal_log_hints ? "on" : "off");
117120
}
118121
else if (info == XLOG_FPW_CHANGE)
119122
{

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
# open_sync
188188
#full_page_writes = on # recover from partial page writes
189189
#wal_log_hints = off # also do full page writes of non-critical updates
190+
# (change requires restart)
190191
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
191192
# (change requires restart)
192193
#wal_writer_delay = 200ms # 1-10000 milliseconds

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy