Skip to content

Commit 463dde8

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 f3d7077 commit 463dde8

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
@@ -117,12 +117,15 @@ xlog_desc(StringInfo buf, uint8 xl_info, char *rec)
117117
}
118118
}
119119

120-
appendStringInfo(buf, "parameter change: max_connections=%d max_worker_processes=%d max_prepared_xacts=%d max_locks_per_xact=%d wal_level=%s",
120+
appendStringInfo(buf, "parameter change: max_connections=%d max_worker_processes=%d "
121+
"max_prepared_xacts=%d max_locks_per_xact=%d "
122+
"wal_level=%s wal_log_hints=%s",
121123
xlrec.MaxConnections,
122124
xlrec.max_worker_processes,
123125
xlrec.max_prepared_xacts,
124126
xlrec.max_locks_per_xact,
125-
wal_level_str);
127+
wal_level_str,
128+
xlrec.wal_log_hints ? "on" : "off");
126129
}
127130
else if (info == XLOG_FPW_CHANGE)
128131
{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
# open_sync
187187
#full_page_writes = on # recover from partial page writes
188188
#wal_log_hints = off # also do full page writes of non-critical updates
189+
# (change requires restart)
189190
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
190191
# (change requires restart)
191192
#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