Fix broken-FK-detection query in release notes
authorÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 30 May 2025 14:18:18 +0000 (16:18 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 30 May 2025 14:18:18 +0000 (16:18 +0200)
commit7f4261d9da35b90d3feb85ea8ea2c7de18913483
treeb13d3ec7d10a3a9009a558852faff9d4715ce819
parent2cd2222ca5f43949036296996dabc6f8f6f963af
Fix broken-FK-detection query in release notes

Commits 53af9491a043 and 2d5fe514052a fixed a number of problems with
foreign keys that reference partitioned tables, and a query to detect
already broken FKs was supplied with the release notes for 17.1, 16.5,
15.9, 14.14, 13.17.  However, that query has a bug that causes it to
wrongly report self-referential foreign keys even when they are correct,
so if the user was to drop and rebuild the FKs as indicated, the query
would continue to report them as needing to be repaired.  Here we fix
the query to not have that problem.

Reported-by: Paul Foerster <paul.foerster@gmail.com>
Discussion: http://postgr.es/m/5456A1D0-CD47-4315-9C65-71B27E7A2906@gmail.com
Backpatch-through: 13-17
doc/src/sgml/release-14.sgml