public inbox for [email protected]
help / color / mirror / Atom feedFrom: Guillaume Lelarge <[email protected]>
To: Franjo Stipanovic <[email protected]>
Cc: [email protected]
Subject: Re: Different Autovacuum Settings on Master and Replica in Streaming Replication
Date: Fri, 17 Jan 2025 16:34:31 +0100
Message-ID: <CAECtzeWsUE5EV_w8yRre28hZBUXPWE-fkFrqf7__B29jWAjP3Q@mail.gmail.com> (raw)
In-Reply-To: <CAJyBP14Vtwmds7vM8nO2GWaXHq3_-Dw1-_+iY0onXVJKWETUDg@mail.gmail.com>
References: <CAJyBP14Vtwmds7vM8nO2GWaXHq3_-Dw1-_+iY0onXVJKWETUDg@mail.gmail.com>
Hi,
Le ven. 17 janv. 2025 à 15:38, Franjo Stipanovic <[email protected]> a
écrit :
> 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.
>
They could but it doesn't matter. VACUUM and ANALYZE aren't executed on
replicas because they are write operations, and you can't write on replicas.
> 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?
>
Changes on the postgresq.conf file aren't replicated, but ALTER TABLE ...
(SET autovacuum...) are.
> I was expecting that this is not possible in streaming replication, only
> in logical replication.
>
You're right, it's not possible.
--
Guillaume.
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Different Autovacuum Settings on Master and Replica in Streaming Replication
In-Reply-To: <CAECtzeWsUE5EV_w8yRre28hZBUXPWE-fkFrqf7__B29jWAjP3Q@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox