pg_waldump: Limit the number of lines shown at the start

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_waldump: Limit the number of lines shown at the start
Date: 2020-12-25 08:37:49
Message-ID: 20201225.173749.3493763933892435.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

I'm occasionally annoyed by the behavior of pg_waldump that it shows
all records in the specified segment before entering waiting state.

tail -f shows only the last few dozen lines at the start. This
behavior I think is useful also for pg_waldump -f.

It was as simple than expected as attached.

Any thoughts, opinions?

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachment Content-Type Size
PoC-pg-waldump-limit-lines-f.patch text/x-patch 1.6 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Kasahara Tatsuhito 2020-12-25 09:08:17 Re: Get memory contexts of an arbitrary backend process
Previous Message Andy Fan 2020-12-25 08:02:05 Re: ALTER TABLE .. DETACH PARTITION CONCURRENTLY