Skip to content

Commit 1b9d1b0

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 dc44480 commit 1b9d1b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/spgist/spgutils.c

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy