diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-06-24 10:39:12 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-06-24 10:39:12 +0200 |
commit | 12e037e2090b1a6446376814ea0419463b02c254 (patch) | |
tree | 172dcd7945ef75f9de8fef17ac119d3dd9904eba /src | |
parent | 9a81c9fa3f6a2f57b9db2a1ce5584c85fc1d977e (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/catalog/index.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index 587b7172429..bb60b23093e 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -773,13 +773,13 @@ index_create(Relation heapRelation, errmsg("concurrent index creation on system catalog tables is not supported"))); /* - * This case is currently not supported, but there's no way to ask for it - * in the grammar anyway, so it can't happen. + * This case is currently not supported. There's no way to ask for it in + * the grammar with CREATE INDEX, but it can happen with REINDEX. */ if (concurrent && is_exclusion) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg_internal("concurrent index creation for exclusion constraints is not supported"))); + errmsg("concurrent index creation for exclusion constraints is not supported"))); /* * We cannot allow indexing a shared relation after initdb (because |