Logical replication in PostgreSQL Amount of subscriber vs publisher WALs - Mailing list pgsql-general

From PALAYRET Jacques
Subject Logical replication in PostgreSQL Amount of subscriber vs publisher WALs
Date
Msg-id 531047943.370846639.1774361183685.JavaMail.zimbra@meteo.fr
Whole thread Raw
Responses Re: Logical replication in PostgreSQL Amount of subscriber vs publisher WALs Vacuuming
List pgsql-general
Hello,

The amount of WAL generated by an SQL INSERT or UPDATE statement applied to a table with multiple indexes can be much greater than the size of the table (table + index).
For example, an INSERT statement in an empty table (with 3 indexes) can generate WALs twice the size of the table (table + index).
This difference (even for an INSERT) may seem surprising, but it's understandable.

What's less intuitive is that, according to my tests, with logical replication in PostgreSQL, the amount of WAL generated by an SQL statement can be very different between the subscriber server (the replica) and the publisher server (the provider).
Is this accurate? Sometimes 1.5 or 2 times greater?

Regards
----- Météo-France -----
PALAYRET Jacques
DCSC/GDC
jacques.palayret@meteo.fr
Fixe : +33 561078319

pgsql-general by date:

Previous
From: Juan Rodrigo Alejandro Burgos Mella
Date:
Subject: Re: PostGre SQL/ HCL
Next
From: Bruce Momjian
Date:
Subject: Re: PostGre SQL/ HCL