↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / Configuration Parameters

logical_decoding_work_mem

Specifies the maximum amount of memory to be used by logical decoding, before some of the decoded changes are written to local disk. This limits the amount of memory used by logical streaming replication connections. It defaults to 64 megabytes (64MB). Since each replication connection only uses a single buffer of this size, and an installation normally doesn't have many such connections concurrently (as limited by max_wal_senders), it's safe to set this value significantly higher than work_mem, reducing the amount of decoded changes written to disk.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

boot val
65536
category
Resource Usage / Memory
context
user
documented
true
enumvals
Unknown
extra desc
This much memory can be used by each internal reorder buffer before spilling to disk.
lang
en
max val
2147483647
metadata version
18
min val
64
name
logical_decoding_work_mem
short desc
Sets the maximum memory to be used for logical decoding.
source
pg-settings-source-snapshot
unit
kB
vartype
integer

Definition PG 18

Specifies the maximum amount of memory to be used by logical decoding, before some of the decoded changes are written to local disk. This limits the amount of memory used by logical streaming replication connections. It defaults to 64 megabytes (64MB). Since each replication connection only uses a single buffer of this size, and an installation normally doesn't have many such connections concurrently (as limited by max_wal_senders), it's safe to set this value significantly higher than work_mem, reducing the amount of decoded changes written to disk.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · wiki-repair-20261023:7b10b7347457d36e6111b942bd7e27a1658c8a27d0e09f3e4d8248a304258b40

Text language: en · wiki-repair-20261023:7b10b7347457d36e6111b942bd7e27a1658c8a27d0e09f3e4d8248a304258b40