Re: splitting pg_resetwal output strings

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>, Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: splitting pg_resetwal output strings
Date: 2026-02-13 14:40:18
Message-ID: 71956939-843a-4218-8280-85ff5d6138c9@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 31.01.26 10:41, Álvaro Herrera wrote:
> Here's a proposal. The idea is to have a separate file (entries.h right
> now but proposal for better names are welcome) which lists those
> strings, together with the printf specifiers needed to actually print
> them. This way, we can measure the length of each exactly as they
> translate before printing anything, and then line up everything to the
> same output length.

I think this basically also applies to most --help output and some other
things. So maybe having a general way to print a list of things
automatically aligned in two columns would be good.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2026-02-13 14:42:36 Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?
Previous Message David E. Wheeler 2026-02-13 14:23:14 Re: pgsql: Add file_extend_method=posix_fallocate,write_zeros.