Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitccbe341

Browse files
committed
initdb: document that -K requires an argument
Reported-by: "Shinoda, Noriyoshi"Discussion:https://postgr.es/m/TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COMAuthor: "Shinoda, Noriyoshi"Backpatch-through: msater
1 parentba6725d commitccbe341

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎doc/src/sgml/ref/initdb.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ PostgreSQL documentation
236236

237237
<varlistentry id="app-initdb-file-encryption-keylen"
238238
xreflabel="file encryption">
239-
<term><option>-K</option></term>
240-
<term><option>--file-encryption-keylen</option></term>
239+
<term><option>-K <replaceable class="parameter">length</replaceable></option></term>
240+
<term><option>--file-encryption-keylen=<replaceable class="parameter">length</replaceable></option></term>
241241
<listitem>
242242
<para>
243243
Specifies the number of bits for the file encryption keys. The

‎src/bin/initdb/initdb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2318,7 +2318,7 @@ usage(const char *progname)
23182318
" to obtain the cluster key\n"));
23192319
printf(_(" -d, --debug generate lots of debugging output\n"));
23202320
printf(_(" -k, --data-checksums use data page checksums\n"));
2321-
printf(_(" -K, --file-encryption-keylen\n"
2321+
printf(_(" -K, --file-encryption-keylen=LENGTH\n"
23222322
" bit length of the file encryption key\n"));
23232323
printf(_(" -L DIRECTORY where to find the input files\n"));
23242324
printf(_(" -n, --no-clean do not clean up after errors\n"));
@@ -3008,7 +3008,7 @@ main(int argc, char *argv[])
30083008
{"wal-segsize",required_argument,NULL,12},
30093009
{"data-checksums",no_argument,NULL,'k'},
30103010
{"authprompt",no_argument,NULL,'R'},
3011-
{"file-encryption-keylen",no_argument,NULL,'K'},
3011+
{"file-encryption-keylen",required_argument,NULL,'K'},
30123012
{"allow-group-access",no_argument,NULL,'g'},
30133013
{"cluster-key-command",required_argument,NULL,'c'},
30143014
{"copy-encryption-keys",required_argument,NULL,'u'},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp