Include all columns in default names for foreign key constraints
Peter Eisentraut <peter@eisentraut.org>
Include all columns in default names for foreign key constraints When creating a name for a foreign key constraint when none is specified, use all column names instead of only the first one, similar to how it is already done for index names. Author: Paul Martinez <hellopfm@gmail.com> Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com> Discussion: https://www.postgresql.org/message-id/flat/CAF+2_SFjky6XRfLNRXpkG97W6PRbOO_mjAxqXzAAimU=c7w7_A@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/indexcmds.c | modified | +2 −1 |
| src/backend/commands/statscmds.c | modified | +2 −1 |
| src/backend/commands/tablecmds.c | modified | +41 −1 |
| src/test/regress/expected/alter_table.out | modified | +4 −4 |
| src/test/regress/expected/foreign_key.out | modified | +80 −60 |
| src/test/regress/expected/rules.out | modified | +6 −6 |
| src/test/regress/sql/foreign_key.sql | modified | +17 −3 |
Discussion
- PATCH: Include all columns in default names for foreign key constraints. 5 messages · 2019-01-13 → 2019-03-13