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

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_waldump: Allow hexadecimal values for -t/--timeline option
Date: 2023-03-21 07:11:04
Message-ID: E1peW9A-004c56-7l@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)lardiere(dot)net>
Discussion: https://www.postgresql.org/message-id/flat/8fef346e-2541-76c3-d768-6536ae052993(at)lardiere(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-03-21 12:09:26 pgsql: Avoid using atooid for numerical comparisons which arent Oids
Previous Message Amit Kapila 2023-03-21 04:31:50 pgsql: Ignore dropped columns during apply of update/delete.