postgres.git / summary / log / commit / refs
commit 04a1f0938717561feff526f39e930eef85c42379
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu Dec 16 02:22:38 2010 +0000
First released in: 9.1.0, 8.2.20, 8.3.14, 8.4.7, 9.0.3
Fix contrib/seg's GiST picksplit method.
Fix the same size_alpha versus size_beta typo that was recently fixed
in contrib/cube. Noted by Alexander Korotkov.
Back-patch to all supported branches (there is a more invasive fix in
HEAD).
contrib/seg/seg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c
index aea86765568..3354a900942 100644
--- a/contrib/seg/seg.c
+++ b/contrib/seg/seg.c
@@ -426,7 +426,7 @@ gseg_picksplit(GistEntryVector *entryvec,
else
{
datum_r = union_dr;
- size_r = size_alpha;
+ size_r = size_beta;
*right++ = i;
v->spl_nright++;
}
[parent: d5ddd2fa7747]