mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user