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

Started by Peter Eisentrautover 3 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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: /messages/by-id/8fef346e-2541-76c3-d768-6536ae052993@lardiere.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4c8044c04455fe87dadefa4f7c69bfe6cdbe3cc5

Modified Files
--------------
doc/src/sgml/ref/pg_waldump.sgml | 3 ++-
src/bin/pg_waldump/pg_waldump.c | 37 +++++++++++++++++++++++++++++++++----
2 files changed, 35 insertions(+), 5 deletions(-)