pgsql: Doc: clarify partitioned table limitations - Mailing list pgsql-committers

From David Rowley
Subject pgsql: Doc: clarify partitioned table limitations
Date
Msg-id E1oV5rt-001WGL-Rj@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Doc: clarify partitioned table limitations

Improve documentation regarding the limitations of unique and primary key
constraints on partitioned tables.  The existing documentation didn't make
it clear that the constraint columns had to be present in the partition
key as bare columns.  The reader could be led to believe that it was ok to
include the constraint columns as part of a function call's parameters or
as part of an expression.  Additionally, the documentation didn't mention
anything about the fact that we disallow unique and primary key
constraints if the partition keys contain *any* function calls or
expressions, regardless of if the constraint columns appear as columns
elsewhere in the partition key.

The confusion here was highlighted by a report on the general mailing list
by James Vanns.

Discussion: https://postgr.es/m/CAH7vdhNF0EdYZz3GLpgE3RSJLwWLhEk7A_fiKS9dPBT3Dz_3eA@mail.gmail.com
Discussion: https://postgr.es/m/CAApHDvoU-u9iTqKjteYRFfi+UNEk7dbSAcyxEQD==vZt9B1KnA@mail.gmail.com
Reviewed-by: Erik Rijkers
Backpatch-through: 11

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1630cad74092bf7af277762a22cc2605bd0bd5b6

Modified Files
--------------
doc/src/sgml/ddl.sgml | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: pgsql: Doc: clarify partitioned table limitations
Next
From: Daniel Gustafsson
Date:
Subject: pgsql: Check for interrupts in pg_trgm word similarity