]> granicus.if.org Git - postgresql/commitdiff
Fix typo in SP-GiST error message
authorAlexander Korotkov <akorotkov@postgresql.org>
Fri, 10 Aug 2018 14:28:48 +0000 (17:28 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Fri, 10 Aug 2018 14:34:07 +0000 (17:34 +0300)
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

src/backend/access/spgist/spgutils.c

index 4a9b5da268d5941165ac3983cddcd6dd271f09d3..6d59b316ae3c64e590ebc1262d3532f2c5baf51c 100644 (file)
@@ -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);
                }