pgsql: Improve error message about valid value for distance in phrase o - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Improve error message about valid value for distance in phrase o
Date
Msg-id E1mIizV-0005uz-KS@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve error message about valid value for distance in phrase operator.

The distance in phrase operator must be an integer value between zero
and MAXENTRYPOS inclusive. But previously the error message about
its valid value included the information about its upper limit
but not lower limit (i.e., zero). This commit improves the error message
so that it also includes the information about its lower limit.

Back-patch to v9.6 where full-text phrase search was supported.

Author: Kyotaro Horiguchi
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/20210819.170315.1413060634876301811.horikyota.ntt@gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/81fa1bce2770ee9c9ffe92baa7c5abae70939c59

Modified Files
--------------
src/backend/utils/adt/tsquery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Improve error message about valid value for distance in phrase o
Next
From: Fujii Masao
Date:
Subject: pgsql: Avoid using ambiguous word "positive" in error message.