From: Robert Haas Date: Thu, 26 May 2022 16:55:06 +0000 (-0400) Subject: In CREATE FOREIGN TABLE syntax synopsis, fix partitioning stuff. X-Git-Tag: REL_10_22~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d605eba0904b7c0cfe8c3d994df56fb9eaeb7989;p=thirdparty%2Fpostgresql.git In CREATE FOREIGN TABLE syntax synopsis, fix partitioning stuff. Foreign tables can be partitioned, but previous documentation commits left the syntax synopsis both incomplete and incorrect. Justin Pryzby and Amit Langote Discussion: http://postgr.es/m/20220521130922.GX19626@telsasoft.com --- diff --git a/doc/src/sgml/ref/create_foreign_table.sgml b/doc/src/sgml/ref/create_foreign_table.sgml index 8e9caabfe71..69bbee044a8 100644 --- a/doc/src/sgml/ref/create_foreign_table.sgml +++ b/doc/src/sgml/ref/create_foreign_table.sgml @@ -35,7 +35,8 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] table_name { column_name [ WITH OPTIONS ] [ column_constraint [ ... ] ] | table_constraint } [, ... ] -) ] partition_bound_spec +) ] + FOR VALUES partition_bound_spec SERVER server_name [ OPTIONS ( option 'value' [, ... ] ) ] @@ -51,6 +52,12 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] table_name [ CONSTRAINT constraint_name ] CHECK ( expression ) [ NO INHERIT ] + +and partition_bound_spec is: + +IN ( { numeric_literal | string_literal | TRUE | FALSE | NULL } [, ...] ) | +FROM ( { numeric_literal | string_literal | TRUE | FALSE | MINVALUE | MAXVALUE } [, ...] ) + TO ( { numeric_literal | string_literal | TRUE | FALSE | MINVALUE | MAXVALUE } [, ...] )