Re: emit recovery stats via a new file or a new hook

2021-11-10 Thread Euler Taveira
On Wed, Nov 10, 2021, at 2:51 PM, Bharath Rupireddy wrote: > On Mon, Nov 1, 2021 at 12:30 AM Andres Freund wrote: > > I'm not sure that the new log messages aren't sufficient. But if they > > aren't, it seems better to keep additional data in the stats system, and > > make them visible via views,

Re: emit recovery stats via a new file or a new hook

2021-11-10 Thread Bharath Rupireddy
On Mon, Nov 1, 2021 at 12:30 AM Andres Freund wrote: > > Here are a few thoughts on how we could go about doing this. I > > proposed them earlier in [1], > > 1) capture and write recovery stats into a file > > 2) capture and emit recovery stats via a new hook > > 3) capture and write into a new sy

Re: emit recovery stats via a new file or a new hook

2021-11-02 Thread Amit Kapila
On Mon, Nov 1, 2021 at 12:30 AM Andres Freund wrote: > > I'm not sure that the new log messages aren't sufficient. But if they > aren't, it seems better to keep additional data in the stats system, and > make them visible via views, rather than adding yet another place to > keep stats. > +1. This

Re: emit recovery stats via a new file or a new hook

2021-10-31 Thread Andres Freund
Hi, On 2021-10-31 19:06:07 +0530, Bharath Rupireddy wrote: > It is sometimes super important to be able to answer customer > questions like: What was the total time taken by the last recovery of > the server? What was the time taken by each phase of recovery/redo > processing of the startup proces