Different Autovacuum Settings on Master and Replica in Streaming Replication

From: Franjo Stipanovic <fritzfs(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Different Autovacuum Settings on Master and Replica in Streaming Replication
Date: 2025-01-17 14:37:34
Message-ID: CAJyBP14Vtwmds7vM8nO2GWaXHq3_-Dw1-_+iY0onXVJKWETUDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Question regarding autovacuum settings in a PostgreSQL streaming
replication setup. Specifically, I am curious about whether it is possible
(and advisable) to have different values for the following settings on the
master and replica databases:
- autovacuum_vacuum_scale_factor
- autovacuum_analyze_scale_factor

Can the above settings be configured differently on the master and replica
databases in a streaming replication setup? I just tested this on AWS RDS
Postgres.

How would those different settings interact with replication, for example,
if I apply change on master, would it be replicated to replica and override
my replica setting?

I was expecting that this is not possible in streaming replication, only in
logical replication.

Thank you!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2025-01-17 15:00:20 Re: glibc 2.35-2.39 upgrade requirements
Previous Message richard 2025-01-17 07:36:44 In-place upgrade with streaming replicas