Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit895a4bc

Browse files
committed
Allow TRUNCATE foo, foo to succeed, per report from Nikhils.
1 parent9c8f749 commit895a4bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.259 2008/06/19 00:46:04 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.260 2008/07/16 16:54:08 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -762,6 +762,9 @@ ExecuteTruncate(TruncateStmt *stmt)
762762
ResultRelInfo*resultRelInfo;
763763
ListCell*cell;
764764

765+
/* make list unique */
766+
stmt->relations=list_union(NIL,stmt->relations);
767+
765768
/*
766769
* Open, exclusive-lock, and check all the explicitly-specified relations
767770
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp