Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2b13702

Browse files
committed
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
1 parent e01d347 commit 2b13702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/spgist/spgutils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ spgGetCache(Relation index)
133133
if (!OidIsValid(index_getprocid(index, 1, SPGIST_COMPRESS_PROC)))
134134
ereport(ERROR,
135135
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
136-
errmsg("compress method must not defined when leaf type is different from input type")));
136+
errmsg("compress method must be defined when leaf type is different from input type")));
137137

138138
fillTypeDesc(&cache->attLeafType, cache->config.leafType);
139139
}

0 commit comments

Comments
 (0)