Re: pg_waldump stucks with options --follow or -f and --stats or -z - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Re: pg_waldump stucks with options --follow or -f and --stats or -z
Date
Msg-id CALj2ACWbgG1bDzXFr6HozpyG8ruhvLt6T1c+PL+UKUW0PGNgEA@mail.gmail.com
Whole thread Raw
In response to Re: pg_waldump stucks with options --follow or -f and --stats or -z  (Michael Paquier <michael@paquier.xyz>)
Responses Re: pg_waldump stucks with options --follow or -f and --stats or -z
List pgsql-hackers
On Sat, Nov 20, 2021 at 11:10 AM Michael Paquier <michael@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.

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: XLogReadRecord() error in XlogReadTwoPhaseData()
Next
From: Bharath Rupireddy
Date:
Subject: Re: Printing backtrace of postgres processes