diff options
author | Fujii Masao <fujii@postgresql.org> | 2023-06-08 20:11:52 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2023-06-08 20:12:51 +0900 |
commit | 378d73ef204d0dcbeab834d52478e8cb90578ab7 (patch) | |
tree | ccf464a0f4283def77206273f6ae0978900ec521 /doc/src | |
parent | 53ea2b7ad050ce4ad95c89bb55197209b65886a1 (diff) | |
download | postgresql-378d73ef204d0dcbeab834d52478e8cb90578ab7.tar.gz postgresql-378d73ef204d0dcbeab834d52478e8cb90578ab7.zip |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/alter_foreign_table.sgml | 2 |
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 0f4191713ae..3cb6f08fcf2 100644 --- a/doc/src/sgml/ref/alter_foreign_table.sgml +++ b/doc/src/sgml/ref/alter_foreign_table.sgml @@ -521,7 +521,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> |