aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spgutils.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2018-08-10 17:28:48 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2018-08-10 17:28:48 +0300
commit2b13702d5c7e879bdd0587a80d5cfaeb5206f4ea (patch)
tree233c7d9295cb2c540834acd2fbfbb1abf990c1b2 /src/backend/access/spgist/spgutils.c
parente01d3477e7486b0bbc6591be67675962218245b2 (diff)
downloadpostgresql-2b13702d5c7e879bdd0587a80d5cfaeb5206f4ea.tar.gz
postgresql-2b13702d5c7e879bdd0587a80d5cfaeb5206f4ea.zip
Fix typo in SP-GiST error message
Error message didn't match the actual check. Fix that. Compression of leaf SP-GiST values was introduced in 11. So, backpatch. Discussion: https://postgr.es/m/20180810.100742.15469435.horiguchi.kyotaro%40lab.ntt.co.jp Author: Kyotaro Horiguchi Backpatch-through: 11
Diffstat (limited to 'src/backend/access/spgist/spgutils.c')
-rw-r--r--src/backend/access/spgist/spgutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/spgist/spgutils.c b/src/backend/access/spgist/spgutils.c
index 4a9b5da268d..6d59b316ae3 100644
--- a/src/backend/access/spgist/spgutils.c
+++ b/src/backend/access/spgist/spgutils.c
@@ -133,7 +133,7 @@ spgGetCache(Relation index)
if (!OidIsValid(index_getprocid(index, 1, SPGIST_COMPRESS_PROC)))
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("compress method must not defined when leaf type is different from input type")));
+ errmsg("compress method must be defined when leaf type is different from input type")));
fillTypeDesc(&cache->attLeafType, cache->config.leafType);
}