index f780918a9516419e964fa3f71cc99333be864e82..096a6f289155feb8f8061ffac35b97a7c657b06f 100644 (file)
0, RangeVarCallbackForTruncate,
NULL);
- /* open the relation, we already hold a lock on it */
- rel = table_open(myrelid, NoLock);
-
/* don't throw error for "TRUNCATE foo, foo" */
if (list_member_oid(relids, myrelid))
- {
- table_close(rel, lockmode);
continue;
- }
+
+ /* open the relation, we already hold a lock on it */
+ rel = table_open(myrelid, NoLock);
/*
* RangeVarGetRelidExtended() has done most checks with its callback,