Skip to content

Commit 281e987

Browse files
author
Maksim Milyutin
committed
Change input format of start xid, multixact xid from hex to decimal
1 parent d976755 commit 281e987

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/src/sgml/ref/initdb.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ doc/src/sgml/ref/initdb.sgml
378378
<term><option>--multixact-id=<replaceable class="parameter">START_MX_ID</replaceable></option></term>
379379
<listitem>
380380
<para>
381-
Specifies a start multixact id value in the hex format for new db instance to test 64-bit xids,
381+
Specifies a start multixact id value in the decimal format for new db instance to test 64-bit xids,
382382
default value is <literal>0</literal>.
383383
</para>
384384
</listitem>
@@ -400,7 +400,7 @@ doc/src/sgml/ref/initdb.sgml
400400
<term><option>--xid=<replaceable class="parameter">START_XID</replaceable></option></term>
401401
<listitem>
402402
<para>
403-
Specifies a start xid value in the hex format for new db instance to test 64-bit xids,
403+
Specifies a start xid value in the decimal for new db instance to test 64-bit xids,
404404
default value is <literal>0</literal>.
405405
</para>
406406
</listitem>

src/bin/initdb/initdb.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,14 +2693,14 @@ usage(const char *progname)
26932693
printf(_(" -U, --username=NAME database superuser name\n"));
26942694
printf(_(" -W, --pwprompt prompt for a password for the new superuser\n"));
26952695
printf(_(" -X, --xlogdir=XLOGDIR location for the transaction log directory\n"));
2696-
printf(_(" -x, --xid=START_XID specify start xid value in hex format for new db instance to test 64-bit xids,\n"
2696+
printf(_(" -x, --xid=START_XID specify start xid value in decimal format for new db instance to test 64-bit xids,\n"
26972697
" default value is 0\n"));
26982698
printf(_("\nLess commonly used options:\n"));
26992699
printf(_(" -d, --debug generate lots of debugging output\n"));
27002700
printf(_(" -k, --data-checksums use data page checksums\n"));
27012701
printf(_(" -L DIRECTORY where to find the input files\n"));
27022702
printf(_(" -m, --multixact-id=START_MX_ID\n"
2703-
" specify start multixact id value in hex format for new db instance\n"
2703+
" specify start multixact id value in decimal format for new db instance\n"
27042704
" to test 64-bit xids, default value is 0\n"));
27052705
printf(_(" -n, --noclean do not clean up after errors\n"));
27062706
printf(_(" -N, --nosync do not wait for changes to be written safely to disk\n"));
@@ -3469,9 +3469,9 @@ main(int argc, char *argv[])
34693469
printf(_("Running in debug mode.\n"));
34703470
break;
34713471
case 'm':
3472-
if (sscanf(optarg, HEX_XID_FMT, &start_mx_id) != 1)
3472+
if (sscanf(optarg, XID_FMT, &start_mx_id) != 1)
34733473
{
3474-
fprintf(stderr, "%s: invalid hex value of multixact-id\n", progname);
3474+
fprintf(stderr, "%s: invalid decimal value of multixact-id\n", progname);
34753475
exit(1);
34763476
}
34773477
break;
@@ -3535,9 +3535,9 @@ main(int argc, char *argv[])
35353535
xlog_dir = pg_strdup(optarg);
35363536
break;
35373537
case 'x':
3538-
if (sscanf(optarg, HEX_XID_FMT, &start_xid) != 1)
3538+
if (sscanf(optarg, XID_FMT, &start_xid) != 1)
35393539
{
3540-
fprintf(stderr, "%s: invalid hex value of xid\n", progname);
3540+
fprintf(stderr, "%s: invalid decimal value of xid\n", progname);
35413541
exit(1);
35423542
}
35433543
break;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy