Allow some exclusion constraints on partitions

Peter Eisentraut <peter@eisentraut.org>

Commit: 8c852ba9a4347c4778cc610ad5a9cb50ea701b5c
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-07-12T07:25:17Z
Releases: 17.0
Allow some exclusion constraints on partitions

Previously we only allowed unique B-tree constraints on partitions
(and only if the constraint included all the partition keys).  But we
could allow exclusion constraints with the same restriction.  We also
require that those columns be compared for equality, not something
like &&.

Author: Paul A. Jungwirth <pj@illuminatedcomputing.com>
Reviewed-by: Ronan Dunklau <ronan.dunklau@aiven.io>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://www.postgresql.org/message-id/flat/ec8b1d9b-502e-d1f8-e909-1bf9dffe6fa5@illuminatedcomputing.com

Files

Documentation touched

Discussion