From bf5d51e7fe1ecc6d6aaf24d37ea29904194e32a2 Mon Sep 17 00:00:00 2001
From: Tatsuo Ishii <ishii@postgresql.org>
Date: Mon, 15 Nov 1999 09:59:00 +0000
Subject: [PATCH] Tree dividing is not appropriate in Rtree. This fix is
 reported by Hiroki Kataoka (kataoka@interwiz.koganei.tokyo.jp).

---
 src/backend/access/rtree/rtree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/access/rtree/rtree.c b/src/backend/access/rtree/rtree.c
index fc7f31606bb..d12e21c9cd1 100644
--- a/src/backend/access/rtree/rtree.c
+++ b/src/backend/access/rtree/rtree.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.39 1999/11/07 23:07:58 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.40 1999/11/15 09:59:00 ishii Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -845,7 +845,7 @@ picksplit(Relation r,
 			pfree(datum_r);
 			pfree(union_dl);
 			datum_r = union_dr;
-			size_r = size_alpha;
+			size_r = size_beta;
 			*right++ = i;
 			v->spl_nright++;
 		}
-- 
GitLab