pg_waldump: Allow hexadecimal values for -t/--timeline option

Peter Eisentraut <peter@eisentraut.org>

Commit: 4c8044c04455fe87dadefa4f7c69bfe6cdbe3cc5
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-03-21T07:05:23Z
Releases: 16.0
pg_waldump: Allow hexadecimal values for -t/--timeline option

This makes it easier to specify values taken directly from WAL file
names.

The option parsing is arranged in the style of option_parse_int() (but
we need to parse unsigned int), to allow future refactoring in the
same manner.

Reviewed-by: Sébastien Lardière <sebastien@lardiere.net>
Discussion: https://www.postgresql.org/message-id/flat/8fef346e-2541-76c3-d768-6536ae052993@lardiere.net

Files

PathChange+/−
doc/src/sgml/ref/pg_waldump.sgml modified +2 −1
src/bin/pg_waldump/pg_waldump.c modified +33 −4

Documentation touched

Discussion