summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFujii Masao2023-06-08 11:11:52 +0000
committerFujii Masao2023-06-08 11:14:58 +0000
commit8c9f56a6a43ec1954c23e98aa1292a0977eecd1c (patch)
tree57609755df4425e4af259b95e1d31ca39508c254
parent5b0e76dce641377c6488fd8c00f93715427406f5 (diff)
doc: Fix example command for ALTER FOREIGN TABLE ... OPTIONS.
In the documentation, previously the example command for ALTER FOREIGN TABLE ... OPTIONS incorrectly included both the option name and value with the DROP operation. The correct syntax for the DROP operation requires only the name of the option to be specified. This commit fixes the example by removing the option value from the DROP operation. Back-patch to all supported versions. Author: Mehmet Emin KARAKAS <emin100@gmail.com> Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/CANQrdXAHzbcEYhjGoe5A42OmfvdQhHFJzyKj9gJvHuDKyOF5Ng@mail.gmail.com
-rw-r--r--doc/src/sgml/ref/alter_foreign_table.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/alter_foreign_table.sgml b/doc/src/sgml/ref/alter_foreign_table.sgml
index f266be0c37b..66b4c7d6c48 100644
--- a/doc/src/sgml/ref/alter_foreign_table.sgml
+++ b/doc/src/sgml/ref/alter_foreign_table.sgml
@@ -543,7 +543,7 @@ ALTER FOREIGN TABLE distributors ALTER COLUMN street SET NOT NULL;
<para>
To change options of a foreign table:
<programlisting>
-ALTER FOREIGN TABLE myschema.distributors OPTIONS (ADD opt1 'value', SET opt2 'value2', DROP opt3 'value3');
+ALTER FOREIGN TABLE myschema.distributors OPTIONS (ADD opt1 'value', SET opt2 'value2', DROP opt3);
</programlisting></para>
</refsect1>