*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.128.4.1 2006/02/10 19:01:33 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.128.4.2 2007/08/25 19:08:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
relationId, accessMethodName, accessMethodId,
isconstraint);
- heap_close(rel, NoLock);
-
/*
* Report index creation if appropriate (delay this till after most of
* the error checks)
primary ? "PRIMARY KEY" : "UNIQUE",
indexRelationName, RelationGetRelationName(rel))));
+ heap_close(rel, NoLock);
+
index_create(relationId, indexRelationName,
indexInfo, accessMethodId, tablespaceId, classObjectId,
primary, isconstraint,