In CREATE FOREIGN TABLE syntax synopsis, fix partitioning stuff.
authorRobert Haas
Thu, 26 May 2022 16:54:57 +0000 (12:54 -0400)
committerRobert Haas
Thu, 26 May 2022 16:54:57 +0000 (12:54 -0400)
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[email protected]

doc/src/sgml/ref/create_foreign_table.sgml

index eabeaf36f51a1cbeb0dc634e6d23895b3f7dc780..c9b167edf923bb602ded442852752f1421afc123 100644 (file)
@@ -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 | DEFAULT }
   SERVER server_name
 [ OPTIONS ( option 'value' [, ... ] ) ]
 
@@ -52,6 +53,13 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] table_name
 
 [ CONSTRAINT constraint_name ]
 CHECK ( expression ) [ NO INHERIT ]
+
+and partition_bound_spec is:
+
+IN ( partition_bound_expr [, ...] ) |
+FROM ( { partition_bound_expr | MINVALUE | MAXVALUE } [, ...] )
+  TO ( { partition_bound_expr | MINVALUE | MAXVALUE } [, ...] ) |
+WITH ( MODULUS numeric_literal, REMAINDER numeric_literal )