projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de27d3b
)
Allow TRUNCATE foo, foo to succeed, per report from Nikhils.
author
Bruce Momjian
<bruce@momjian.us>
Wed, 16 Jul 2008 16:54:08 +0000
(16:54 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Wed, 16 Jul 2008 16:54:08 +0000
(16:54 +0000)
src/backend/commands/tablecmds.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/tablecmds.c
b/src/backend/commands/tablecmds.c
index 1257397f356ec074f9b33b43d1a3400f95f95dd7..dcd7eaa50522bed46b81d4af377db4da84bd7d47 100644
(file)
--- a/
src/backend/commands/tablecmds.c
+++ b/
src/backend/commands/tablecmds.c
@@
-762,6
+762,9
@@
ExecuteTruncate(TruncateStmt *stmt)
ResultRelInfo *resultRelInfo;
ListCell *cell;
+ /* make list unique */
+ stmt->relations = list_union(NIL, stmt->relations);
+
/*
* Open, exclusive-lock, and check all the explicitly-specified relations
*/