Assert(rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE);
ereport(ERROR,
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- errmsg("REPACK (CONCURRENTLY) is not supported for partitioned tables"),
+ errmsg("%s is not supported for partitioned tables",
+ "REPACK (CONCURRENTLY)"),
errhint("Consider running the command on individual partitions."));
}
else
ereport(ERROR,
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- errmsg("REPACK (CONCURRENTLY) requires an explicit table name"));
+ errmsg("%s requires an explicit table name",
+ "REPACK (CONCURRENTLY)"));
}
/*
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("cannot repack relation \"%s\"",
RelationGetRelationName(rel)),
- errhint("REPACK CONCURRENTLY is not supported for catalog relations."));
+ errhint("%s is not supported for catalog relations.",
+ "REPACK (CONCURRENTLY)"));
/*
* reorderbuffer.c does not seem to handle processing of TOAST relation
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("cannot repack relation \"%s\"",
RelationGetRelationName(rel)),
- errhint("REPACK CONCURRENTLY is not supported for TOAST relations"));
+ errhint("%s is not supported for TOAST relations.",
+ "REPACK (CONCURRENTLY)"));
relpersistence = rel->rd_rel->relpersistence;
if (relpersistence != RELPERSISTENCE_PERMANENT)
errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
errmsg("cannot repack relation \"%s\"",
RelationGetRelationName(rel)),
- errhint("REPACK CONCURRENTLY is only allowed for permanent relations."));
+ errhint("%s is only allowed for permanent relations.",
+ "REPACK (CONCURRENTLY)"));
/* With NOTHING, WAL does not contain the old tuple. */
replident = rel->rd_rel->relreplident;
-- Disallowed in catalogs
REPACK (CONCURRENTLY) pg_class;
ERROR: cannot repack relation "pg_class"
-HINT: REPACK CONCURRENTLY is not supported for catalog relations.
+HINT: REPACK (CONCURRENTLY) is not supported for catalog relations.
-- Doesn't like partitioned tables
REPACK (CONCURRENTLY) clstrpart;
ERROR: REPACK (CONCURRENTLY) is not supported for partitioned tables
-- Doesn't support catalog tables
REPACK (CONCURRENTLY) pg_class;
ERROR: cannot repack relation "pg_class"
-HINT: REPACK CONCURRENTLY is not supported for catalog relations.
+HINT: REPACK (CONCURRENTLY) is not supported for catalog relations.
-- Only support permanent tables, temp and unlogged tables are not supported
CREATE TEMP TABLE repack_conc_temp (i int PRIMARY KEY);
REPACK (CONCURRENTLY) repack_conc_temp;
ERROR: cannot repack relation "repack_conc_temp"
-HINT: REPACK CONCURRENTLY is only allowed for permanent relations.
+HINT: REPACK (CONCURRENTLY) is only allowed for permanent relations.
DROP TABLE repack_conc_temp;
CREATE UNLOGGED TABLE repack_conc_unlogged (i int PRIMARY KEY);
REPACK (CONCURRENTLY) repack_conc_unlogged;
ERROR: cannot repack relation "repack_conc_unlogged"
-HINT: REPACK CONCURRENTLY is only allowed for permanent relations.
+HINT: REPACK (CONCURRENTLY) is only allowed for permanent relations.
DROP TABLE repack_conc_unlogged;
-- Doesn't support TOAST tables directly
CREATE TABLE repack_conc_toast (t text);