aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/indexcmds.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-11-07 19:33:43 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-11-07 19:33:43 -0300
commit99f9384ea91761cdb957d051b0ca64179320b2ed (patch)
treeb9238b0acacf6cb562025aaf2b199f5084c95686 /src/backend/commands/indexcmds.c
parentf3ad4fddfaf71e8f6f037cd627f398ba43625ca1 (diff)
downloadpostgresql-99f9384ea91761cdb957d051b0ca64179320b2ed.tar.gz
postgresql-99f9384ea91761cdb957d051b0ca64179320b2ed.zip
Message style improvements
* Avoid pointlessly highlighting that an index vacuum was executed by a parallel worker; user doesn't care. * Don't give the impression that a non-concurrent reindex of an invalid index on a TOAST table would work, because it wouldn't. * Add a "translator:" comment for a mysterious message. Discussion: https://postgr.es/m/20201107034943.GA16596@alvherre.pgsql Reviewed-by: Michael Paquier <michael@paquier.xyz>
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r--src/backend/commands/indexcmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index 76fc4d83ec2..4d9a19a16a7 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -2993,13 +2993,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")));
/* Save the list of relation OIDs in private context */
oldcontext = MemoryContextSwitchTo(private_context);