on or true
on or true
От:
Tatsuo Ishii <ishii@sraoss.co.jp>
Дата:
In the documentation of ssl_passphrase_command_supports_reload:
configuration reload if a key file needs a passphrase. If this
parameter is false (the default), then
:
:
running. Setting this parameter to true might be appropriate if the
passphrase is obtained from a file, for example.
I thought we prefer "on/off" rather than "true/false" for boolean
parameter values in postgresql.conf. Should we change them to "on/off"?
Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
Re: on or true
От:
Oleg Bartunov <obartunov@postgrespro.ru>
Дата:
On Sun, Dec 2, 2018 at 1:25 AM Tatsuo Ishii wrote: > > In the documentation of ssl_passphrase_command_supports_reload: > > configuration reload if a key file needs a passphrase. If this > parameter is false (the default), then > : > : > running. Setting this parameter to true might be appropriate if the > passphrase is obtained from a file, for example. > > I thought we prefer "on/off" rather than "true/false" for boolean > parameter values in postgresql.conf. Should we change them to "on/off"? +1 for on/off > > Best regards, > -- > Tatsuo Ishii > SRA OSS, Inc. Japan > English: http://www.sraoss.co.jp/index_en.php > Japanese:http://www.sraoss.co.jp > -- Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Re: on or true
От:
Tatsuo Ishii <ishii@sraoss.co.jp>
Дата:
>> I thought we prefer "on/off" rather than "true/false" for boolean
>> parameter values in postgresql.conf. Should we change them to "on/off"?
>
> +1 for on/off
I found a few more
places where true/false is used other than
ssl_passphrase_command_supports_reload in config.sgml.
Attached is a patch to fix them in config.sgml.
Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index 2e5a5cd331..fc4f17be41 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -1249,7 +1249,7 @@ include_dir 'conf.d'
than the client's.
This parameter can only be set in the postgresql.conf
file or on the server command line.
- The default is true.
+ The default is on.
@@ -1404,12 +1404,12 @@ include_dir 'conf.d'
This parameter determines whether the passphrase command set by
ssl_passphrase_command will also be called during a
configuration reload if a key file needs a passphrase. If this
- parameter is false (the default), then
+ parameter is off (the default), then
ssl_passphrase_command will be ignored during a
reload and the SSL configuration will not be reloaded if a passphrase
is needed. That setting is appropriate for a command that requires a
TTY for prompting, which might not be available when the server is
- running. Setting this parameter to true might be appropriate if the
+ running. Setting this parameter to on might be appropriate if the
passphrase is obtained from a file, for example.
@@ -3330,14 +3330,14 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
Specifies whether to stop just after the specified recovery target
- (true), or just before the recovery target
- (false).
+ (on), or just before the recovery target
+ (off).
Applies when ,
, or
is specified.
This setting controls whether transactions
having exactly the target WAL location (LSN), commit time, or transaction ID, respectively, will
- be included in the recovery. Default is true.
+ be included in the recovery. Default is on.
@@ -8675,8 +8675,8 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
- If true, any error will terminate the current session. By default,
- this is set to false, so that only FATAL errors will terminate the
+ If on, any error will terminate the current session. By default,
+ this is set to off, so that only FATAL errors will terminate the
session.
@@ -8690,9 +8690,9 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
- When set to true, which is the default, PostgreSQL
+ When set to on, which is the default, PostgreSQL
will automatically reinitialize after a backend crash. Leaving this
- value set to true is normally the best way to maximize the availability
+ value set to on is normally the best way to maximize the availability
of the database. However, in some circumstances, such as when
PostgreSQL is being invoked by clusterware, it may be
useful to disable the restart so that the clusterware can gain
@@ -8709,7 +8709,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
- When set to false, which is the default, PostgreSQL
+ When set to off, which is the default, PostgreSQL
will raise a PANIC-level error on failure to flush modified data files
to the filesystem. This causes the database server to crash.
@@ -8724,9 +8724,9 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
faulty hardware.
- If set to true, PostgreSQL will instead
+ If set to on, PostgreSQL will instead
report an error but continue to run so that the data flushing
- operation can be retried in a later checkpoint. Only set it to true
+ operation can be retried in a later checkpoint. Only set it to on
after investigating the operating system's treatment of buffered data
in case of write-back failure.
Re: on or true
От:
Tatsuo Ishii <ishii@sraoss.co.jp>
Дата:
> > I found a few more > places where true/false is used other than > ssl_passphrase_command_supports_reload in config.sgml. > Attached is a patch to fix them in config.sgml. I will commit this to the master branch if there's no objection. Since this is an enhancement, not a bug fix, I think no back patching is necessary. Best regards, -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese:http://www.sraoss.co.jp
Re: on or true
От:
Tatsuo Ishii <ishii@sraoss.co.jp>
Дата:
>> I found a few more >> places where true/false is used other than >> ssl_passphrase_command_supports_reload in config.sgml. >> Attached is a patch to fix them in config.sgml. > > I will commit this to the master branch if there's no objection. > Since this is an enhancement, not a bug fix, I think no back patching > is necessary. Done. Best regards, -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese:http://www.sraoss.co.jp