Re: splitting pg_resetwal output strings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: splitting pg_resetwal output strings
Date
Msg-id 71956939-843a-4218-8280-85ff5d6138c9@eisentraut.org
Whole thread Raw
In response to splitting pg_resetwal output strings  (Álvaro Herrera <alvherre@kurilemu.de>)
Responses Re: splitting pg_resetwal output strings
List 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.




pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: pgsql: Add file_extend_method=posix_fallocate,write_zeros.
Next
From: Hannu Krosing
Date:
Subject: Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?