Assert index_attnos[0] == 1 in ri_FastPathFlushArray()
Amit Langote <amitlan@postgresql.org>
Assert index_attnos[0] == 1 in ri_FastPathFlushArray() ri_FastPathFlushArray() handles single-column FKs only, so index_attnos[0] is always 1. Add an Assert to make this invariant explicit, as a followup to 980c1a85d819. Suggested-by: Junwang Zhao <zhjwpku@gmail.com> (offlist) Discussion: https://www.postgresql.org/message-id/CADfhSr-pCkbDxmiOVYSAGE5QGjsQ48KKH_W424SPk%2BpwzKZFaQ%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/ri_triggers.c | modified | +2 −2 |
Discussion
- BUG: PostgreSQL 19devel throws internal opfamily error for FK with reordered referenced columns 10 messages · 2026-04-09 → 2026-04-10