@@ -1452,18 +1452,18 @@ include_dir 'conf.d'
1452
1452
mechanism is used.
1453
1453
</para>
1454
1454
<para>
1455
- The command must print the passphrase to the standard output and exit
1456
- with code 0. In the parameter value, <literal>%p</literal> is
1457
- replaced by a prompt string . (Write <literal>%%</literal> for a
1458
- literal <literal>%</literal>.) Note that the prompt string will
1459
- probably contain whitespace, so be sure to quote adequately . A single
1460
- newline is stripped from the end of the output if present.
1461
- </para>
1462
- <para>
1463
- The command does not actually have to prompt the user for a
1464
- passphrase. It can read it from a file, obtain it from a keychain
1465
- facility, or similar. It is up to the user to make sure the chosen
1466
- mechanism is adequately secure .
1455
+ The command must print the passphrase to the standard output
1456
+ and exit with code 0. It can prompt from the terminal if
1457
+ <option>--authprompt</option> is used . In the parameter value,
1458
+ <literal>%R </literal> represents the file descriptor number opened
1459
+ to the terminal that started the server . A file descriptor is only
1460
+ available if enabled at server start. If <literal>%R</literal>
1461
+ is used and no file descriptor is available, the server will not
1462
+ start. Value <literal>%p</literal> is replaced by a pre-defined
1463
+ prompt string. (Write <literal>%%</literal> for a literal
1464
+ <literal>%</literal>.) Note that the prompt string will probably
1465
+ contain whitespace, so be sure to quote its use adequately.
1466
+ Newlines are stripped from the end of the output if present .
1467
1467
</para>
1468
1468
<para>
1469
1469
This parameter can only be set in the <filename>postgresql.conf</filename>
@@ -1486,10 +1486,12 @@ include_dir 'conf.d'
1486
1486
parameter is off (the default), then
1487
1487
<varname>ssl_passphrase_command</varname> will be ignored during a
1488
1488
reload and the SSL configuration will not be reloaded if a passphrase
1489
- is needed. That setting is appropriate for a command that requires a
1490
- TTY for prompting, which might not be available when the server is
1491
- running. Setting this parameter to on might be appropriate if the
1492
- passphrase is obtained from a file, for example.
1489
+ is needed. This setting is appropriate for a command that requires a
1490
+ terminal for prompting, which will likely not be available when the server is
1491
+ running. (<option>--authprompt</option> closes the terminal file
1492
+ descriptor soon after server start.) Setting this parameter on
1493
+ might be appropriate, for example, if the passphrase is obtained
1494
+ from a file.
1493
1495
</para>
1494
1496
<para>
1495
1497
This parameter can only be set in the <filename>postgresql.conf</filename>
0 commit comments