Re: [HACKERS] Restricting maximum keep segments by repslots
Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
From: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
To: michael.paquier@gmail.com
Cc: andres@anarazel.de, peter.eisentraut@2ndquadrant.com,
pgsql-hackers@postgresql.org
Date: 2017-12-22T06:03:20Z
Lists: pgsql-hackers
Attachments
- 0001-Add-WAL-releaf-vent-for-replication-slots.patch (text/x-patch)
At Thu, 30 Nov 2017 12:44:16 +0900, Michael Paquier <michael.paquier@gmail.com> wrote in <CAB7nPqS4bhSsDm_47GVjQno=iU6thx13MQVwwXXKBHQwfwwNCA@mail.gmail.com> > On Thu, Nov 9, 2017 at 5:31 PM, Kyotaro HORIGUCHI > <horiguchi.kyotaro@lab.ntt.co.jp> wrote: > > # I had been forgetting to count the version for latestst several > > # patches. I give the version '4' - as the next of the last > > # numbered patch. > > With all the changes that have happened in the documentation lately, I > suspect that this is going to need a rework.. Moved to next CF per > lack of reviews, with waiting on author as status. I refactored this patch so that almost-same don't appear twice. And added recovery TAP test for this. New function GetMinSecuredSegment() calculates the segment number considering wal_keep_segments and max_slot_wal_keep_size. KeepLogSeg and IsLsnStillAvailable no longer have the code block that should be in "sync". I think the new code is far understandable than the previous one. The new third patch contains a TAP test to check max_slot_wal_keep_size and relevant stats view are surely working. regards, -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Save slot's restart_lsn when invalidated due to size
- 12e52ba5a76e 13.0 landed
- 0188bb82531f 14.0 landed
-
Fix checkpoint signalling
- 1816a1c6ffe4 13.0 landed
-
Check slot->restart_lsn validity in a few more places
- d0abe78d8427 13.0 landed
-
Allow users to limit storage reserved by replication slots
- c6550776394e 13.0 landed
-
Remove header noise from test_decoding test
- 69360b34589b 13.0 landed
-
Rework WAL-reading supporting structs
- 709d003fbd98 13.0 cited
-
Flip argument order in XLogSegNoOffsetToRecPtr
- a22445ff0be2 12.0 cited