From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | rob stan <aslicokay(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Setting wal_keep_segments parameter |
Date: | 2021-05-09 22:23:12 |
Message-ID: | 543047.1620598992@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
rob stan <aslicokay(at)gmail(dot)com> writes:
> I want to set wal_keep_segments parameter to a value but what should be the
> process I follow? I have archiving process on all clusters is on but when a
> sudden process comes to postgres wal files will be bigger than i assume. I
> don't know what I should do. Could you please help me?
Well, the thing about wal_keep_segments is that there is no guaranteed
safe value. If you are trying to use it to protect streaming standby
servers then the better modern solution is to have the standbys use
replication slots, so the primary actually knows how much old WAL
they need. On the other hand, if you're just concerned about archiving
then I don't think you need it at all; the archiving mechanism doesn't
need any help to ensure that WAL doesn't get recycled before it's
archived.
Or in short: I think the correct setting for wal_keep_segments is
zero. There are generally better ways to do what it does.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Venkata B Nagothi | 2021-05-09 23:26:00 | Re: Postgres upgrade 12 - issues with OIDs |
Previous Message | rob stan | 2021-05-09 21:20:01 | Setting wal_keep_segments parameter |