From 0c86613625a66ca81ed3f57f28f63567f5e690fc Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Tue, 22 Sep 2020 13:07:11 -0300 Subject: [PATCH 2/4] Remove "concurrently" from error message Invalid indexes on toast tables cannot be reindexed regardless of mode of operation. --- src/backend/commands/indexcmds.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 75552c64ed..3522f4b6a6 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -3187,13 +3187,14 @@ ReindexRelationConcurrently(Oid relationOid, int options) /* * Don't allow reindex for an invalid index on TOAST table, as - * if rebuilt it would not be possible to drop it. + * if rebuilt it would not be possible to drop it. Match + * error message in reindex_index(). */ if (IsToastNamespace(get_rel_namespace(relationOid)) && !get_index_isvalid(relationOid)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("cannot reindex invalid index on TOAST table concurrently"))); + errmsg("cannot reindex invalid index on TOAST table"))); /* * Check if parent relation can be locked and if it exists, -- 2.20.1