Skip to content

Commit ec7e053

Browse files
committed
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
1 parent fe9e658 commit ec7e053

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

doc/src/sgml/ref/alter_subscription.sgml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,13 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO <
277277
</listitem>
278278
</varlistentry>
279279
</variablelist>
280+
281+
<para>
282+
When specifying a parameter of type <type>boolean</type>, the
283+
<literal>=</literal> <replaceable class="parameter">value</replaceable>
284+
part can be omitted, which is equivalent to
285+
specifying <literal>TRUE</literal>.
286+
</para>
280287
</refsect1>
281288

282289
<refsect1>

doc/src/sgml/ref/create_publication.sgml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
217217
</varlistentry>
218218

219219
</variablelist>
220+
221+
<para>
222+
When specifying a parameter of type <type>boolean</type>, the
223+
<literal>=</literal> <replaceable class="parameter">value</replaceable>
224+
part can be omitted, which is equivalent to
225+
specifying <literal>TRUE</literal>.
226+
</para>
220227
</refsect1>
221228

222229
<refsect1>

doc/src/sgml/ref/create_subscription.sgml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,13 @@ CREATE SUBSCRIPTION <replaceable class="parameter">subscription_name</replaceabl
354354
</listitem>
355355
</varlistentry>
356356
</variablelist>
357+
358+
<para>
359+
When specifying a parameter of type <type>boolean</type>, the
360+
<literal>=</literal> <replaceable class="parameter">value</replaceable>
361+
part can be omitted, which is equivalent to
362+
specifying <literal>TRUE</literal>.
363+
</para>
357364
</refsect1>
358365

359366
<refsect1 id="sql-createsubscription-notes" xreflabel="Notes">

0 commit comments

Comments
 (0)