WAL Internals
+
+
+
WAL is automatically enabled; no action is
required from the administrator except ensuring that the
linkend="wal-configuration">).
+
WAL records are appended to the
WAL
+ logs as each new record is written. The insert position is described by
+ a Log Sequence Number (
LSN) that is a byte offset into
+ the logs, increasing monotonically with each new record.
+
LSN values are returned as the datatype
+ pg_lsn>. Values can be
+ compared to calculate the volume of
WAL data that
+ separates them, so they are used to measure the progress of replication
+ and recovery.
+
+
WAL logs are stored in the directory
pg_xlog under the data directory, as a set of