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/nodes/copyfuncs.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/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index db69cb0a278..f138402b3c2 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.295 2004/12/31 21:59:55 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.296 2005/01/27 03:17:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1815,7 +1815,7 @@ _copyTruncateStmt(TruncateStmt *from) { TruncateStmt *newnode = makeNode(TruncateStmt); - COPY_NODE_FIELD(relation); + COPY_NODE_FIELD(relations); return newnode; } |