aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2021-08-25 11:46:25 +0900
committerFujii Masao <fujii@postgresql.org>2021-08-25 11:47:50 +0900
commitf53ceaea8a1da638a5c68a09676c67e90b7de870 (patch)
treee39d2474f77c4deb822ee0cc4e6d9fd81591f6fe /src/backend/parser/parse_utilcmd.c
parent69b93a0127bc0ccfd7458c32174f5174bcf8524d (diff)
downloadpostgresql-f53ceaea8a1da638a5c68a09676c67e90b7de870.tar.gz
postgresql-f53ceaea8a1da638a5c68a09676c67e90b7de870.zip
Avoid using ambiguous word "positive" in error message.
There are two identical error messages about valid value of modulus for hash partition, in PostgreSQL source code. Commit 0e1275fb07 improved only one of them so that ambiguous word "positive" was avoided there, and forgot to improve the other. This commit improves the other. Which would reduce translator burden. Back-pach to v11 where the error message exists. Author: Kyotaro Horiguchi Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/20210819.170315.1413060634876301811.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
-rw-r--r--src/backend/parser/parse_utilcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c
index a9a98e6b9cf..44aa38ac9f3 100644
--- a/src/backend/parser/parse_utilcmd.c
+++ b/src/backend/parser/parse_utilcmd.c
@@ -3897,7 +3897,7 @@ transformPartitionBound(ParseState *pstate, Relation parent,
if (spec->modulus <= 0)
ereport(ERROR,
(errcode(ERRCODE_INVALID_TABLE_DEFINITION),
- errmsg("modulus for hash partition must be a positive integer")));
+ errmsg("modulus for hash partition must be an integer value greater than zero")));
Assert(spec->remainder >= 0);