Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d605eba

Browse files
committed
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/[email protected]
1 parent 7686403 commit d605eba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/src/sgml/ref/create_foreign_table.sgml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
3535
{ <replaceable class="PARAMETER">column_name</replaceable> [ WITH OPTIONS ] [ <replaceable class="PARAMETER">column_constraint</replaceable> [ ... ] ]
3636
| <replaceable>table_constraint</replaceable> }
3737
[, ... ]
38-
) ] <replaceable class="PARAMETER">partition_bound_spec</replaceable>
38+
) ]
39+
FOR VALUES <replaceable class="parameter">partition_bound_spec</replaceable>
3940
SERVER <replaceable class="parameter">server_name</replaceable>
4041
[ OPTIONS ( <replaceable class="PARAMETER">option</replaceable> '<replaceable class="PARAMETER">value</replaceable>' [, ... ] ) ]
4142

@@ -51,6 +52,12 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
5152

5253
[ CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable> ]
5354
CHECK ( <replaceable class="PARAMETER">expression</replaceable> ) [ NO INHERIT ]
55+
56+
<phrase>and <replaceable class="PARAMETER">partition_bound_spec</replaceable> is:</phrase>
57+
58+
IN ( { <replaceable class="PARAMETER">numeric_literal</replaceable> | <replaceable class="PARAMETER">string_literal</replaceable> | TRUE | FALSE | NULL } [, ...] ) |
59+
FROM ( { <replaceable class="PARAMETER">numeric_literal</replaceable> | <replaceable class="PARAMETER">string_literal</replaceable> | TRUE | FALSE | MINVALUE | MAXVALUE } [, ...] )
60+
TO ( { <replaceable class="PARAMETER">numeric_literal</replaceable> | <replaceable class="PARAMETER">string_literal</replaceable> | TRUE | FALSE | MINVALUE | MAXVALUE } [, ...] )
5461
</synopsis>
5562
</refsynopsisdiv>
5663

0 commit comments

Comments
 (0)