From 1f7ef548ec2e594fa8766781c490fb5b998ea46b Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Wed, 28 Jun 2006 12:00:14 +0000 Subject: Changes * new split algorithm (as proposed in http://archives.postgresql.org/pgsql-hackers/2006-06/msg00254.php) * possible call pickSplit() for second and below columns * add spl_(l|r)datum_exists to GIST_SPLITVEC - pickSplit should check its values to use already defined spl_(l|r)datum for splitting. pickSplit should set spl_(l|r)datum_exists to 'false' (if they was 'true') to signal to caller about using spl_(l|r)datum. * support for old pickSplit(): not very optimal but correct split * remove 'bytes' field from GISTENTRY: in any case size of value is defined by it's type. * split GIST_SPLITVEC to two structures: one for using in picksplit and second - for internal use. * some code refactoring * support of subsplit to rtree opclasses TODO: add support of subsplit to contrib modules --- contrib/cube/cube.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/cube/cube.c') diff --git a/contrib/cube/cube.c b/contrib/cube/cube.c index 944eee62b17..87ca2db7688 100644 --- a/contrib/cube/cube.c +++ b/contrib/cube/cube.c @@ -1,5 +1,5 @@ /****************************************************************************** - $PostgreSQL: pgsql/contrib/cube/cube.c,v 1.25 2006/05/30 22:12:12 tgl Exp $ + $PostgreSQL: pgsql/contrib/cube/cube.c,v 1.26 2006/06/28 11:59:59 teodor Exp $ This file contains routines that can be bound to a Postgres backend and called by the backend in the process of processing queries. The calling @@ -300,8 +300,8 @@ g_cube_picksplit(GistEntryVector *entryvec, double size_l, size_r; int nbytes; - OffsetNumber seed_1 = 0, - seed_2 = 0; + OffsetNumber seed_1 = 1, + seed_2 = 2; OffsetNumber *left, *right; OffsetNumber maxoff; -- cgit v1.2.3