1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Report index name on CLUSTER failure. Also, suggest ALTER TABLE

WITHOUT CLUSTER for cluster failure of a single table in a full db
cluster.
This commit is contained in:
Bruce Momjian
2005-05-10 13:16:26 +00:00
parent dc5ebcfcce
commit a4dde3bff3
3 changed files with 21 additions and 14 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.156 2005/05/06 17:24:53 tgl Exp $
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.157 2005/05/10 13:16:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -5464,7 +5464,7 @@ ATExecClusterOn(Relation rel, const char *indexName)
indexName, RelationGetRelationName(rel))));
/* Check index is valid to cluster on */
check_index_is_clusterable(rel, indexOid);
check_index_is_clusterable(rel, indexOid, false);
/* And do the work */
mark_index_clustered(rel, indexOid);