Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 95fff2a

Browse filesBrowse files
Reword user-facing message for "power of two"
While there are numerous instances of using "power of 2" in the code, translated user-facing messages use "power of two". Fix two instances which used "power of 2" instead. Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20230829.175615.682972421946735863.horikyota.ntt@gmail.com
1 parent 6844d32 commit 95fff2a
Copy full SHA for 95fff2a

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎src/bin/initdb/initdb.c

Copy file name to clipboardExpand all lines: src/bin/initdb/initdb.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3350,7 +3350,7 @@ main(int argc, char *argv[])
33503350
check_need_password(authmethodlocal, authmethodhost);
33513351

33523352
if (!IsValidWalSegSize(wal_segment_size_mb * 1024 * 1024))
3353-
pg_fatal("argument of %s must be a power of 2 between 1 and 1024", "--wal-segsize");
3353+
pg_fatal("argument of %s must be a power of two between 1 and 1024", "--wal-segsize");
33543354

33553355
get_restricted_token();
33563356

‎src/bin/pg_resetwal/pg_resetwal.c

Copy file name to clipboardExpand all lines: src/bin/pg_resetwal/pg_resetwal.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ main(int argc, char *argv[])
298298
exit(1);
299299
set_wal_segsize = wal_segsize_mb * 1024 * 1024;
300300
if (!IsValidWalSegSize(set_wal_segsize))
301-
pg_fatal("argument of %s must be a power of 2 between 1 and 1024", "--wal-segsize");
301+
pg_fatal("argument of %s must be a power of two between 1 and 1024", "--wal-segsize");
302302
break;
303303
}
304304

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.