]> granicus.if.org Git - postgresql/commitdiff
Print wal_log_hints in the rm_desc routing of a parameter-change record.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 5 Dec 2014 09:58:24 +0000 (11:58 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 5 Dec 2014 10:00:48 +0000 (12:00 +0200)
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.

src/backend/access/rmgrdesc/xlogdesc.c
src/backend/utils/misc/postgresql.conf.sample

index 6b5fea96d7bc536e7eb53faff98cde6a9b37cf26..8a88155ef9c8058b77ce7f6d279cc1ce3da3cc27 100644 (file)
@@ -108,12 +108,15 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
                        }
                }
 
-               appendStringInfo(buf, "max_connections=%d max_worker_processes=%d max_prepared_xacts=%d max_locks_per_xact=%d wal_level=%s",
+               appendStringInfo(buf, "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.max_worker_processes,
                                                 xlrec.max_prepared_xacts,
                                                 xlrec.max_locks_per_xact,
-                                                wal_level_str);
+                                                wal_level_str,
+                                                xlrec.wal_log_hints ? "on" : "off");
        }
        else if (info == XLOG_FPW_CHANGE)
        {
index c4b546ed12ec674e025b664b5e9536d28caf3e4c..b053659f88e85a2aff7b2ddcbb12b0ca4b2897d0 100644 (file)
                                        #   open_sync
 #full_page_writes = on                 # recover from partial page writes
 #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
                                        # (change requires restart)
 #wal_writer_delay = 200ms              # 1-10000 milliseconds