Skip to content

Commit 12e037e

Browse files
committed
Upgrade internal error message to external
As part of REINDEX CONCURRENTLY, this formerly internal-only error message becomes potentially user-visible (see regression tests), so change from errmsg_internal() to errmsg(), and update comment.
1 parent 9a81c9f commit 12e037e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/catalog/index.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -773,13 +773,13 @@ index_create(Relation heapRelation,
773773
errmsg("concurrent index creation on system catalog tables is not supported")));
774774

775775
/*
776-
* This case is currently not supported, but there's no way to ask for it
777-
* in the grammar anyway, so it can't happen.
776+
* This case is currently not supported. There's no way to ask for it in
777+
* the grammar with CREATE INDEX, but it can happen with REINDEX.
778778
*/
779779
if (concurrent && is_exclusion)
780780
ereport(ERROR,
781781
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
782-
errmsg_internal("concurrent index creation for exclusion constraints is not supported")));
782+
errmsg("concurrent index creation for exclusion constraints is not supported")));
783783

784784
/*
785785
* We cannot allow indexing a shared relation after initdb (because

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy