diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2023-03-21 08:01:12 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2023-03-21 08:05:23 +0100 |
commit | 4c8044c04455fe87dadefa4f7c69bfe6cdbe3cc5 (patch) | |
tree | 9152af1fe0325daa557e002809ce2873ed799213 /doc/src | |
parent | b797def5951fcd8eed2124b7316cc9027d6228cc (diff) | |
download | postgresql-4c8044c04455fe87dadefa4f7c69bfe6cdbe3cc5.tar.gz postgresql-4c8044c04455fe87dadefa4f7c69bfe6cdbe3cc5.zip |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_waldump.sgml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/pg_waldump.sgml b/doc/src/sgml/ref/pg_waldump.sgml index 343f0482a9f..7685d3d15b9 100644 --- a/doc/src/sgml/ref/pg_waldump.sgml +++ b/doc/src/sgml/ref/pg_waldump.sgml @@ -215,7 +215,8 @@ PostgreSQL documentation <para> Timeline from which to read WAL records. The default is to use the value in <replaceable>startseg</replaceable>, if that is specified; otherwise, the - default is 1. + default is 1. The value can be specified in decimal or hexadecimal, + for example <literal>17</literal> or <literal>0x11</literal>. </para> </listitem> </varlistentry> |