Add test case for same-type reordered FK columns
Amit Langote <amitlan@postgresql.org>
Add test case for same-type reordered FK columns The test added in 980c1a85d819 covered reordered FK columns with different types, which triggered an "operator not a member of opfamily" error in the fast-path prior to that commit. Add a test for the same-type case, which is also fixed by that commit but where the wrong scan key ordering instead produced a spurious FK violation without any internal error. Reported-by: Fredrik Widlert <fredrik.widlert@digpro.se> Discussion: https://postgr.es/m/CADfhSr8hYc-4Cz7vfXH_oV-Jq81pyK9W4phLrOGspovsg2W7Kw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/foreign_key.out | modified | +10 −0 |
| src/test/regress/sql/foreign_key.sql | modified | +9 −0 |
Discussion
- BUG: PostgreSQL 19devel throws internal opfamily error for FK with reordered referenced columns 10 messages · 2026-04-09 → 2026-04-10