Fix ALTER TABLE / CLUSTER ON breakage.

Alvaro Herrera1
This commit is contained in:
Bruce Momjian 2003-03-21 15:43:02 +00:00
parent b8f7d3d0b6
commit 063da9dce6

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.69 2003/03/20 18:52:47 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.70 2003/03/21 15:43:02 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -3835,6 +3835,7 @@ AlterTableClusterOn(Oid relOid, const char *indexName)
{ {
elog(NOTICE, "ALTER TABLE: table \"%s\" is already being clustered on index \"%s\"", elog(NOTICE, "ALTER TABLE: table \"%s\" is already being clustered on index \"%s\"",
NameStr(rel->rd_rel->relname), indexName); NameStr(rel->rd_rel->relname), indexName);
ReleaseSysCache(indexTuple);
heap_close(rel, AccessExclusiveLock); heap_close(rel, AccessExclusiveLock);
return; return;
} }