Skip to content

Commit c3db1f3

Browse files
committed
doc: clarify PERIOD and WITHOUT OVERLAPS in CREATE TABLE
Discussion: https://postgr.es/m/04938501-fc8f-46f3-97a4-9a81a3f24530@illuminatedcomputing.com 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

Lines changed: 7 additions & 5 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy