mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Fix ALTER TABLE / CLUSTER ON breakage.
Alvaro Herrera1
This commit is contained in:
parent
b8f7d3d0b6
commit
063da9dce6
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user