Correct docs about partitions and EXCLUDE constraints

Started by Paul A Jungwirthover 1 year ago3 messageshackers
Jump to latest
#1Paul A Jungwirth
pj@illuminatedcomputing.com

Hi Hackers,

In pg17 we added support for cross-partition EXCLUDE constraints, as long as they included all
partition key columns and compared them with equality (see 8c852ba9a4). I updated the docs for
exclusion constraints, but I missed that the docs for CREATE TABLE still said that they were not
supported. This commit fixes that. I don't see a similar message in the ALTER TABLE docs.

I take it we should apply this patch to both v18 and v17?

Yours,

--
Paul ~{:-)
pj@illuminatedcomputing.com

Attachments:

v1-0001-Correct-docs-about-partitions-and-EXCLUDE-constra.patchtext/x-patch; charset=UTF-8; name=v1-0001-Correct-docs-about-partitions-and-EXCLUDE-constra.patchDownload+5-3
#2Jeff Davis
pgsql@j-davis.com
In reply to: Paul A Jungwirth (#1)
Re: Correct docs about partitions and EXCLUDE constraints

On Wed, 2025-06-18 at 11:25 -0700, Paul Jungwirth wrote:

Hi Hackers,

In pg17 we added support for cross-partition EXCLUDE constraints, as
long as they included all
partition key columns and compared them with equality (see
8c852ba9a4). I updated the docs for
exclusion constraints, but I missed that the docs for CREATE TABLE
still said that they were not
supported. This commit fixes that. I don't see a similar message in
the ALTER TABLE docs.

Leaving it in the entry for PARTITION BY seems out of place; shouldn't
it be moved to the entry for EXCLUDE? I also merged your wording with
some similar wording from the entry about UNIQUE. Attached.

Regards,
Jeff Davis

Attachments:

0001-Correct-docs-about-partitions-and-EXCLUDE-constraint.patchtext/x-patch; charset=UTF-8; name=0001-Correct-docs-about-partitions-and-EXCLUDE-constraint.patchDownload+12-6
#3Paul A Jungwirth
pj@illuminatedcomputing.com
In reply to: Jeff Davis (#2)
Re: Correct docs about partitions and EXCLUDE constraints

On 6/19/25 08:43, Jeff Davis wrote:

Leaving it in the entry for PARTITION BY seems out of place; shouldn't
it be moved to the entry for EXCLUDE? I also merged your wording with
some similar wording from the entry about UNIQUE. Attached.

I agree this new location makes more sense. The wording looks good.

Thanks!

--
Paul ~{:-)
pj@illuminatedcomputing.com