From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Shukla, Pranjal <pshukla@akamai.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Query on WAL Optimization and Streaming Replication
Date: Thu, 17 Mar 2022 15:38:31 +0100
Message-ID: <3ce9de9d04a013c718d174e00cb91bb896591b2a.camel@cybertec.at> (raw)
In-Reply-To: <2B04F626-3467-4D58-8F14-3164529EF96F@akamai.com>
References: <69E6DB22-F46D-4798-B47E-A69C5B52FA56@akamai.com>
<311862d1f3cf8aa637d25f95a3434eb43bb4d35f.camel@cybertec.at>
<2B04F626-3467-4D58-8F14-3164529EF96F@akamai.com>
On Thu, 2022-03-17 at 14:05 +0000, Shukla, Pranjal wrote:
> From the configuration we have, does it mean that the primary will retain 32 WAL's
> of 1 GB each and then start evicting the first WAL as soon as the last one gets filled?
> In layman's term, 32GB is huge amount of data and I don't think that much changes
> during upgrades. In fact the total size of our database is 56 GB. Is my understanding
> correct?
>
> wal_keep_segments = 32
No, it means that the last 32 WAL segments of size 16MB are retained,
that is 0.5 GB.
"max_wal_size" is not the size of a WAL segment.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, pshukla@akamai.com
Subject: Re: Query on WAL Optimization and Streaming Replication
In-Reply-To: <3ce9de9d04a013c718d174e00cb91bb896591b2a.camel@cybertec.at>
References: <69E6DB22-F46D-4798-B47E-A69C5B52FA56@akamai.com> <311862d1f3cf8aa637d25f95a3434eb43bb4d35f.camel@cybertec.at> <2B04F626-3467-4D58-8F14-3164529EF96F@akamai.com> <3ce9de9d04a013c718d174e00cb91bb896591b2a.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox