pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_waldump: Allow hexadecimal values for -t/--timeline option
Date: Tue, 21 Mar 2023 07:11:04 +0000
Message-ID: <E1peW9A-004c56-7l@gemulon.postgresql.org> (raw)

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

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(-)



Message-ID: <E1peW9A-004c56-7l@gemulon.postgresql.org>
Permalink:  ../E1peW9A-004c56-7l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1peW9A-004c56-7l@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_waldump: Allow hexadecimal values for -t/--timeline option
  In-Reply-To: <E1peW9A-004c56-7l@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox