May 2025

1 commit
Handle self-referencing FKs correctly in partitioned tables
2 May 2025Álvaro Herreramaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.5REL_16_STABLE16.9REL_15_STABLE15.13REL_14_STABLE14.18REL_13_STABLE13.21Also in: Self referential foreign keys in partitioned table not working as expected (written from the discussion, no matching patch)Also in: BUG #18156: Self-referential foreign key in partitioned table not enforced on deletes
LLM analysis, 99% surewritten from the discussion, no matching patch

The commit credits Guillaume Lelarge's report #1 and fixes its missing constraints by reordering foreign-key cloning and removing the self-reference exclusion in src/backend/commands/tablecmds.c, with catalog and enforcement regression tests. Neither this thread nor linked reports thread #51342 and thread #72168 has patchsets; the from_discussion verdict in thread #51342 is consistent with this fix addressing multiple credited reports.

Credits across 1 commit

Reported by
Cheetah1
Guillaume Lelarge1
Luca Vallisa1
Committer
Alvaro Herrera1