-
- Downloads
Generalize TRUNCATE to support truncating multiple tables in one
command. This is useful because we can allow truncation of tables referenced by foreign keys, so long as the referencing table is truncated in the same command. Alvaro Herrera
Showing
- doc/src/sgml/ref/truncate.sgml 15 additions, 14 deletionsdoc/src/sgml/ref/truncate.sgml
- src/backend/catalog/heap.c 99 additions, 49 deletionssrc/backend/catalog/heap.c
- src/backend/commands/tablecmds.c 95 additions, 65 deletionssrc/backend/commands/tablecmds.c
- src/backend/nodes/copyfuncs.c 2 additions, 2 deletionssrc/backend/nodes/copyfuncs.c
- src/backend/nodes/equalfuncs.c 2 additions, 2 deletionssrc/backend/nodes/equalfuncs.c
- src/backend/parser/gram.y 4 additions, 4 deletionssrc/backend/parser/gram.y
- src/backend/tcop/utility.c 2 additions, 2 deletionssrc/backend/tcop/utility.c
- src/include/catalog/heap.h 3 additions, 3 deletionssrc/include/catalog/heap.h
- src/include/commands/tablecmds.h 2 additions, 2 deletionssrc/include/commands/tablecmds.h
- src/include/nodes/parsenodes.h 2 additions, 2 deletionssrc/include/nodes/parsenodes.h
- src/test/regress/expected/temp.out 27 additions, 0 deletionssrc/test/regress/expected/temp.out
- src/test/regress/expected/truncate.out 76 additions, 15 deletionssrc/test/regress/expected/truncate.out
- src/test/regress/sql/temp.sql 16 additions, 0 deletionssrc/test/regress/sql/temp.sql
- src/test/regress/sql/truncate.sql 40 additions, 7 deletionssrc/test/regress/sql/truncate.sql
Loading
Please register or sign in to comment