wal_segment_size

A preset configuration parameter reporting the size of a WAL segment

wal_segment_size is a preset configuration parameter reporting the size of a WAL segment.

wal_segment_size was added in PostgreSQL 8.4.

Default value

The default value for wal_segment_size is: 16MB.

The value can be influenced in the following ways:

  • a different default value may have been set with the --with-wal-segsize configuration option at compile time (PostgreSQL 8.4 and later)
  • a different value for the cluster may have been set by with the initdb option --wal-segsize (PostgreSQL 11 and later)

A cluster's wal_segment_size cannot be modified.

Change history

Categories

GUC configuration item, Preset configuration item, WAL

See also

wal_block_size, block_size, segment_size