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

Skip to content

Commit c3db1f3

Browse files
committed
doc: clarify PERIOD and WITHOUT OVERLAPS in CREATE TABLE
Discussion: https://postgr.es/m/[email protected] Author: Paul Jungwirth Backpatch-through: master
1 parent d727c54 commit c3db1f3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/src/sgml/ref/create_table.sgml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1184,11 +1184,13 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
11841184
referent for its entire duration. This column must be a range or
11851185
multirange type. In addition, the referenced table must have a primary
11861186
key or unique constraint declared with <literal>WITHOUT
1187-
OVERLAPS</literal>. Finally, if one side of the foreign key uses
1188-
<literal>PERIOD</literal>, the other side must too. If the <replaceable
1189-
class="parameter">refcolumn</replaceable> list is omitted, the
1190-
<literal>WITHOUT OVERLAPS</literal> part of the primary key is treated
1191-
as if marked with <literal>PERIOD</literal>.
1187+
OVERLAPS</literal>. Finally, if the foreign key has a PERIOD
1188+
<replaceable class="parameter">column_name</replaceable> specification
1189+
the corresponding <replaceable class="parameter">refcolumn</replaceable>,
1190+
if present, must also be marked <literal>PERIOD</literal>. If the
1191+
<replaceable class="parameter">refcolumn</replaceable> clause is omitted,
1192+
and thus the reftable's primary key constraint chosen, the primary key
1193+
must have its final column marked <literal>WITHOUT OVERLAPS</literal>.
11921194
</para>
11931195

11941196
<para>

0 commit comments

Comments
 (0)