diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-27 03:19:37 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-27 03:19:37 +0000 |
commit | f07b9689c93084016ecd825258c125aa9f69f962 (patch) | |
tree | 1079f22e2b1a2fd8c04ccce1c78dbed99ffd58bb /src/backend/tcop/utility.c | |
parent | 4fe201237faef8f30b395f1c5b350ce393f95ad3 (diff) | |
download | postgresql-f07b9689c93084016ecd825258c125aa9f69f962.tar.gz postgresql-f07b9689c93084016ecd825258c125aa9f69f962.zip |
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/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 81d557c54ed..006f904f72e 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.232 2005/01/24 17:46:16 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.233 2005/01/27 03:18:10 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -575,7 +575,7 @@ ProcessUtility(Node *parsetree, { TruncateStmt *stmt = (TruncateStmt *) parsetree; - TruncateRelation(stmt->relation); + ExecuteTruncate(stmt->relations); } break; |