-
- Downloads
Clean up generation of default names for constraints, indexes, and serial
sequences, as per recent discussion. All these names are now of the form table_column_type, with digits added if needed to make them unique. Default constraint names are chosen to be unique across their whole schema, not just within the parent object, so as to be more SQL-spec-compatible and make the information schema views more useful.
Showing
- src/backend/catalog/heap.c 70 additions, 77 deletionssrc/backend/catalog/heap.c
- src/backend/catalog/pg_constraint.c 79 additions, 74 deletionssrc/backend/catalog/pg_constraint.c
- src/backend/commands/indexcmds.c 121 additions, 27 deletionssrc/backend/commands/indexcmds.c
- src/backend/commands/tablecmds.c 31 additions, 43 deletionssrc/backend/commands/tablecmds.c
- src/backend/commands/typecmds.c 13 additions, 11 deletionssrc/backend/commands/typecmds.c
- src/backend/parser/analyze.c 20 additions, 116 deletionssrc/backend/parser/analyze.c
- src/include/catalog/pg_constraint.h 10 additions, 11 deletionssrc/include/catalog/pg_constraint.h
- src/include/commands/defrem.h 5 additions, 1 deletionsrc/include/commands/defrem.h
- src/include/parser/analyze.h 1 addition, 5 deletionssrc/include/parser/analyze.h
- src/test/regress/expected/alter_table.out 14 additions, 14 deletionssrc/test/regress/expected/alter_table.out
- src/test/regress/expected/cluster.out 6 additions, 6 deletionssrc/test/regress/expected/cluster.out
- src/test/regress/expected/copy2.out 2 additions, 2 deletionssrc/test/regress/expected/copy2.out
- src/test/regress/expected/domain.out 4 additions, 4 deletionssrc/test/regress/expected/domain.out
- src/test/regress/expected/foreign_key.out 38 additions, 38 deletionssrc/test/regress/expected/foreign_key.out
- src/test/regress/expected/namespace.out 1 addition, 1 deletionsrc/test/regress/expected/namespace.out
- src/test/regress/expected/rules.out 4 additions, 4 deletionssrc/test/regress/expected/rules.out
- src/test/regress/expected/sequence.out 1 addition, 1 deletionsrc/test/regress/expected/sequence.out
- src/test/regress/expected/truncate.out 1 addition, 1 deletionsrc/test/regress/expected/truncate.out
- src/test/regress/output/constraints.source 4 additions, 4 deletionssrc/test/regress/output/constraints.source
- src/test/regress/sql/copy2.sql 1 addition, 1 deletionsrc/test/regress/sql/copy2.sql
Loading
Please register or sign in to comment