Re: Flush pgstats file during checkpoints - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Flush pgstats file during checkpoints
Date
Msg-id ZpXO4xo_RnaT_6I3@paquier.xyz
Whole thread Raw
In response to Re: Flush pgstats file during checkpoints  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Flush pgstats file during checkpoints
List pgsql-hackers
On Fri, Jul 12, 2024 at 01:01:19PM +0000, Bertrand Drouvot wrote:
> Instead of removing the stat file, should we keep it around until the first call
> to pgstat_write_statsfile()?

Oops.  You are right, I have somewhat missed the unlink() once we are
done reading the stats file with a correct redo location.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Internal error codes triggered by tests
Next
From: Noah Misch
Date:
Subject: Re: Confine vacuum skip logic to lazy_scan_skip