@@ -2499,7 +2499,7 @@ ReindexMultipleTables(const char *objectName, ReindexObjectType objectKind,
2499
2499
if (objectKind == REINDEX_OBJECT_SYSTEM && concurrent )
2500
2500
ereport (ERROR ,
2501
2501
(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2502
- errmsg ("concurrent reindex of system catalogs is not supported " )));
2502
+ errmsg ("cannot reindex system catalogs concurrently " )));
2503
2503
2504
2504
/*
2505
2505
* Get OID of object to reindex, being the database currently being used
@@ -2613,7 +2613,7 @@ ReindexMultipleTables(const char *objectName, ReindexObjectType objectKind,
2613
2613
if (!concurrent_warning )
2614
2614
ereport (WARNING ,
2615
2615
(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2616
- errmsg ("concurrent reindex is not supported for catalog relations , skipping all" )));
2616
+ errmsg ("cannot reindex system catalogs concurrently , skipping all" )));
2617
2617
concurrent_warning = true;
2618
2618
continue ;
2619
2619
}
@@ -2764,11 +2764,10 @@ ReindexRelationConcurrently(Oid relationOid, int options)
2764
2764
2765
2765
MemoryContextSwitchTo (oldcontext );
2766
2766
2767
- /* A system catalog cannot be reindexed concurrently */
2768
2767
if (IsCatalogRelationOid (relationOid ))
2769
2768
ereport (ERROR ,
2770
2769
(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2771
- errmsg ("cannot reindex a system catalog concurrently" )));
2770
+ errmsg ("cannot reindex system catalogs concurrently" )));
2772
2771
2773
2772
/* Open relation to get its indexes */
2774
2773
heapRelation = table_open (relationOid , ShareUpdateExclusiveLock );
@@ -2858,11 +2857,10 @@ ReindexRelationConcurrently(Oid relationOid, int options)
2858
2857
{
2859
2858
Oid heapId = IndexGetRelation (relationOid , false);
2860
2859
2861
- /* A system catalog cannot be reindexed concurrently */
2862
2860
if (IsCatalogRelationOid (heapId ))
2863
2861
ereport (ERROR ,
2864
2862
(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2865
- errmsg ("cannot reindex a system catalog concurrently" )));
2863
+ errmsg ("cannot reindex system catalogs concurrently" )));
2866
2864
2867
2865
/* Save the list of relation OIDs in private context */
2868
2866
oldcontext = MemoryContextSwitchTo (private_context );
0 commit comments