Fixes message for non-transaction-safe commands

pull/7240/head
gindibay 2023-10-24 19:15:46 +03:00
parent c7da2cd122
commit 48d749e2e8
1 changed files with 4 additions and 3 deletions

View File

@ -1265,9 +1265,10 @@ ExecuteDistributedDDLJob(DDLJob *ddlJob)
{ {
ereport(WARNING, ereport(WARNING,
(errmsg( (errmsg(
"CONCURRENTLY-enabled index commands can fail partially, " "Commands that are not transaction-safe may result in partial failure"
"leaving behind an INVALID index.\n Use DROP INDEX " ", potentially leading to an inconsistent state. If the problematic command"
"CONCURRENTLY IF EXISTS to remove the invalid index."))); " is a CREATE operation, consider using the 'IF EXISTS' syntax to drop the "
"object, if applicable, and then reattempt the original command.")));
PG_RE_THROW(); PG_RE_THROW();
} }
} }