The postgres documentation about WAL_LEVEL states:
In
logical
level, the same information is logged as withreplica
, plus information needed to extract logical change sets from the WAL. Using a level oflogical
will increase the WAL volume, particularly if many tables are configured forREPLICA IDENTITY FULL
and manyUPDATE
andDELETE
statements are executed.
Two questions please:
(1) Does that mean that the amount of additional WAL that accrues when using logical
when compared to replica
is very little (negligible) as long as no REPLICA IDENTITY FULL
is used? In other words: As long as one does not use REPLICA IDENTITY FULL
with (many) updates
and deletes
on those tables, the additional WAL amount from logical
vs replica
is negligible?
(2) If wal_level
is set to logical
and NO logical replication is used at all (only replica), is the additional WAL amount then negligible for sure?