On Sat, Nov 20, 2021 at 11:10 AM Michael Paquier <mich...@paquier.xyz> wrote: > What you should do is to set such a flag in the signal handler, and > then check its value in the main loop of pg_waldump, dumping the stats > if it is detected as turned on because of a signal.
Thanks. Here's the v3 patch, a much simpler one. Please review it. Regards, Bharath Rupireddy.
v3-0001-pg_waldump-emit-stats-while-terminating.patch
Description: Binary data