Streaming Replication is file-level replication. Therefore, if a file in $PGDATA is modified by a Postgresql program, then the file will be replicated.
VACUUM is a Postgresql "program" that modifies files.
On Wed, Jan 3, 2024 at 6:08 AM Rajesh Kumar <rajeshkumar.dba09@xxxxxxxxx> wrote:
Vacuum removes dead tuples in primary. Are you saying, dead tuples are removed in replica?On Wed, 3 Jan 2024, 15:53 Laurenz Albe, <laurenz.albe@xxxxxxxxxxx> wrote:On Wed, 2024-01-03 at 01:22 +0530, Rajesh Kumar wrote:
> Vacuum operation happens only in primary. How is that replicated?
VACUUM modifies data, data modifications are WAL logged, the WAL
is replayed on the standby.
Yours,
Laurenz Albe