On Thu, Dec 23, 2021 at 4:46 PM Bharath Rupireddy <bharath.rupireddyforpostg...@gmail.com> wrote: > > Hi, > > Currently the end-of-recovery checkpoint can be much slower, impacting > the server availability, if there are many replication slot files > XXXX.snap or map-XXXX to be enumerated and deleted. How about skipping > the .snap and map- file handling during the end-of-recovery > checkpoint? It makes the server available faster and the next regular > checkpoint can deal with these files. If required, we can have a GUC > (skip_replication_slot_file_handling or some other better name) to > control this default being the existing behavior. > > Thoughts?
Here's the v1 patch, please review it. Regards, Bharath Rupireddy.
v1-0001-Skip-processing-snapshot-mapping-files-during-end.patch
Description: Binary data