*** pgsql/src/backend/commands/cluster.c 2009/02/02 19:31:38 1.182 --- pgsql/src/backend/commands/cluster.c 2009/03/31 22:12:46 1.183 *************** *** 11,17 **** * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.181 2009/01/16 13:27:23 heikki Exp $ * *------------------------------------------------------------------------- */ --- 11,17 ---- * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.182 2009/02/02 19:31:38 alvherre Exp $ * *------------------------------------------------------------------------- */ *************** cluster(ClusterStmt *stmt, bool isTopLev *** 117,123 **** * Reject clustering a remote temp table ... their local buffer * manager is not going to cope. */ ! if (isOtherTempNamespace(RelationGetNamespace(rel))) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot cluster temporary tables of other sessions"))); --- 117,123 ---- * Reject clustering a remote temp table ... their local buffer * manager is not going to cope. */ ! if (RELATION_IS_OTHER_TEMP(rel)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot cluster temporary tables of other sessions"))); *************** cluster_rel(RelToCluster *rvtc, bool rec *** 302,308 **** * check_index_is_clusterable which is redundant, but we leave it for * extra safety. */ ! if (isOtherTempNamespace(RelationGetNamespace(OldHeap))) { relation_close(OldHeap, AccessExclusiveLock); return; --- 302,308 ---- * check_index_is_clusterable which is redundant, but we leave it for * extra safety. */ ! if (RELATION_IS_OTHER_TEMP(OldHeap)) { relation_close(OldHeap, AccessExclusiveLock); return; *************** check_index_is_clusterable(Relation OldH *** 465,471 **** * Don't allow cluster on temp tables of other backends ... their local * buffer manager is not going to cope. */ ! if (isOtherTempNamespace(RelationGetNamespace(OldHeap))) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot cluster temporary tables of other sessions"))); --- 465,471 ---- * Don't allow cluster on temp tables of other backends ... their local * buffer manager is not going to cope. */ ! if (RELATION_IS_OTHER_TEMP(OldHeap)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot cluster temporary tables of other sessions")));