Clarify a foreign key error message
Peter Eisentraut <peter@eisentraut.org>
Clarify a foreign key error message Clarify the message about type mismatch in foreign key definition to indicate which column the referencing and which is the referenced one. Reported-by: Jian He <jian.universality@gmail.com> Discussion: https://www.postgresql.org/message-id/CACJufxEL82ao-aXOa=d_-Xip0bix-qdSyNc9fcWxOdkEZFko8w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +1 −1 |
| src/test/regress/expected/alter_table.out | modified | +8 −8 |
| src/test/regress/expected/enum.out | modified | +1 −1 |
| src/test/regress/expected/foreign_key.out | modified | +26 −26 |
| src/test/regress/expected/without_overlaps.out | modified | +3 −3 |
Discussion
- altering a column's collation leaves an invalid foreign key 28 messages · 2024-03-23 → 2024-12-02