mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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>
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user