Allow TRUNCATE foo, foo to succeed, per report from Nikhils.
This commit is contained in:
parent
9c8f74917d
commit
895a4bccb6
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.259 2008/06/19 00:46:04 alvherre Exp $
|
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.260 2008/07/16 16:54:08 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -762,6 +762,9 @@ ExecuteTruncate(TruncateStmt *stmt)
|
|||||||
ResultRelInfo *resultRelInfo;
|
ResultRelInfo *resultRelInfo;
|
||||||
ListCell *cell;
|
ListCell *cell;
|
||||||
|
|
||||||
|
/* make list unique */
|
||||||
|
stmt->relations = list_union(NIL, stmt->relations);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Open, exclusive-lock, and check all the explicitly-specified relations
|
* Open, exclusive-lock, and check all the explicitly-specified relations
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user