On Sat, Jul 2, 2022 at 4:53 AM Dilip Kumar <dilipbal...@gmail.com> wrote: > > I'm doubtful it's a good idea to start dropping at the first segment. I'm > > fairly certain that there's smgrexists() checks in some places, and they'll > > now stop working, even if there are later segments that remained, e.g. > > because > > of an error in the middle of removing later segments. > > Okay, so you mean to say that we can first drop the remaining segment > and at last we drop the segment 0 right?
I think we need to do it in descending order, starting with the highest-numbered segment and working down. md.c isn't smart about gaps in the sequence of files, so it's better if we don't create any gaps. -- Robert Haas EDB: http://www.enterprisedb.com