From: Bruce Momjian Date: Thu, 9 May 2024 20:34:09 +0000 (-0400) Subject: doc: clarify PERIOD and WITHOUT OVERLAPS in CREATE TABLE X-Git-Tag: REL_17_BETA1~76 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=c3db1f30cbaff4b96325615557de1f3528d5fd4a;p=postgresql.git 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 --- diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 02f31d2d6fd..75f06bc49cc 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1184,11 +1184,13 @@ WITH ( MODULUS numeric_literal, REM referent for its entire duration. This column must be a range or multirange type. In addition, the referenced table must have a primary key or unique constraint declared with WITHOUT - OVERLAPS. Finally, if one side of the foreign key uses - PERIOD, the other side must too. If the refcolumn list is omitted, the - WITHOUT OVERLAPS part of the primary key is treated - as if marked with PERIOD. + OVERLAPS. Finally, if the foreign key has a PERIOD + column_name specification + the corresponding refcolumn, + if present, must also be marked PERIOD. If the + refcolumn clause is omitted, + and thus the reftable's primary key constraint chosen, the primary key + must have its final column marked WITHOUT OVERLAPS.