From: Tom Lane Date: Mon, 30 Jan 2023 16:59:37 +0000 (-0500) Subject: Doc: clarify behavior of boolean options in replication commands. X-Git-Tag: REL_16_BETA1~818 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=ec7e053a9;p=postgresql.git Doc: clarify behavior of boolean options in replication commands. defGetBoolean() allows the "value" part of "option = value" syntax to be omitted, in which case it's taken as "true". This is acknowledged in our syntax summaries for relevant commands, but we don't seem to have documented the actual behavior anywhere. Do so for CREATE/ALTER PUBLICATION/SUBSCRIPTION. Use generic boilerplate text for this, with the idea that we can copy-and-paste it into other relevant reference pages, whenever someone gets around to that. Peter Smith, edited a bit by me Discussion: https://postgr.es/m/CAHut+PvwjZfdGt2R8HTXgSZft=jZKymrS8KUg31pS7zqaaWKKw@mail.gmail.com --- diff --git a/doc/src/sgml/ref/alter_subscription.sgml b/doc/src/sgml/ref/alter_subscription.sgml index ad93553a1d5..964fcbb8ff7 100644 --- a/doc/src/sgml/ref/alter_subscription.sgml +++ b/doc/src/sgml/ref/alter_subscription.sgml @@ -277,6 +277,13 @@ ALTER SUBSCRIPTION name RENAME TO < + + + When specifying a parameter of type boolean, the + = value + part can be omitted, which is equivalent to + specifying TRUE. + diff --git a/doc/src/sgml/ref/create_publication.sgml b/doc/src/sgml/ref/create_publication.sgml index e229384e6ff..370dac2ccf2 100644 --- a/doc/src/sgml/ref/create_publication.sgml +++ b/doc/src/sgml/ref/create_publication.sgml @@ -217,6 +217,13 @@ CREATE PUBLICATION name + + + When specifying a parameter of type boolean, the + = value + part can be omitted, which is equivalent to + specifying TRUE. + diff --git a/doc/src/sgml/ref/create_subscription.sgml b/doc/src/sgml/ref/create_subscription.sgml index eba72c6af62..51c45f17c7d 100644 --- a/doc/src/sgml/ref/create_subscription.sgml +++ b/doc/src/sgml/ref/create_subscription.sgml @@ -354,6 +354,13 @@ CREATE SUBSCRIPTION subscription_name + + + When specifying a parameter of type boolean, the + = value + part can be omitted, which is equivalent to + specifying TRUE. +