Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 063da9d

Browse files
committed
Fix ALTER TABLE / CLUSTER ON breakage.
Alvaro Herrera1
1 parent b8f7d3d commit 063da9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.69 2003/03/20 18:52:47 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.70 2003/03/21 15:43:02 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -3835,6 +3835,7 @@ AlterTableClusterOn(Oid relOid, const char *indexName)
38353835
{
38363836
elog(NOTICE, "ALTER TABLE: table \"%s\" is already being clustered on index \"%s\"",
38373837
NameStr(rel->rd_rel->relname), indexName);
3838+
ReleaseSysCache(indexTuple);
38383839
heap_close(rel, AccessExclusiveLock);
38393840
return;
38403841
}

0 commit comments

Comments
 (0)