summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorTom Lane2005-01-27 03:19:37 +0000
committerTom Lane2005-01-27 03:19:37 +0000
commitf07b9689c93084016ecd825258c125aa9f69f962 (patch)
tree1079f22e2b1a2fd8c04ccce1c78dbed99ffd58bb /src/include/commands
parent4fe201237faef8f30b395f1c5b350ce393f95ad3 (diff)
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
Diffstat (limited to 'src/include/commands')
-rw-r--r--src/include/commands/tablecmds.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h
index 75da81f0000..5ec8c9a57d1 100644
--- a/src/include/commands/tablecmds.h
+++ b/src/include/commands/tablecmds.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/commands/tablecmds.h,v 1.21 2004/12/31 22:03:28 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/commands/tablecmds.h,v 1.22 2005/01/27 03:18:24 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -27,7 +27,7 @@ extern void AlterTableInternal(Oid relid, List *cmds, bool recurse);
extern void AlterTableCreateToastTable(Oid relOid, bool silent);
-extern void TruncateRelation(const RangeVar *relation);
+extern void ExecuteTruncate(List *relations);
extern void renameatt(Oid myrelid,
const char *oldattname,