OSDN Git Service

Generalize TRUNCATE to support truncating multiple tables in one
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Jan 2005 03:19:37 +0000 (03:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Jan 2005 03:19:37 +0000 (03:19 +0000)
commitf07b9689c93084016ecd825258c125aa9f69f962
tree1079f22e2b1a2fd8c04ccce1c78dbed99ffd58bb
parent4fe201237faef8f30b395f1c5b350ce393f95ad3
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
14 files changed:
doc/src/sgml/ref/truncate.sgml
src/backend/catalog/heap.c
src/backend/commands/tablecmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/include/catalog/heap.h
src/include/commands/tablecmds.h
src/include/nodes/parsenodes.h
src/test/regress/expected/temp.out
src/test/regress/expected/truncate.out
src/test/regress/sql/temp.sql
src/test/regress/sql/truncate.sql