Re: Vacuum - Mailing list pgsql-admin

From Ron Johnson
Subject Re: Vacuum
Date
Msg-id CANzqJaAG35eCmwH4AwJjrAarQC+Ns2oHjUP68rLGq8Nb9bf30w@mail.gmail.com
Whole thread Raw
In response to Re: Vacuum  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
List pgsql-admin
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@gmail.com> 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@cybertec.at> 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

pgsql-admin by date:

Previous
From: Rajesh Kumar
Date:
Subject: Re: Vacuum
Next
From: "David G. Johnston"
Date:
Subject: Re: Vacuum