Recovering stat file from crash - Mailing list pgsql-hackers

From Marek Kulik
Subject Recovering stat file from crash
Date
Msg-id CAKXfsEcV0RjkNdhi5+Lyq8GUcy=X0y84xhfknM5PUrg91ObY2A@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi,

I created a .patch that will allow me to recover the stat files after a potential crash.
Depending on the traffic on the server some records might be lost (0.5 sec of records / more or less ? ).
From what I read it is still better than no stat files at all.

I restricted it to the default recovery scenario only (RECOVERY_TARGET_TIMELINE_LATEST) to avoid having invalid stats files with other recovery options.

Am I missing something ? File integrity should be fine because of renaming.


Attachment

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: ltree_gist indexes broken after pg_upgrade from 12 to 13
Next
From: Joseph Koshakow
Date:
Subject: Re: Fix overflow in DecodeInterval