]> granicus.if.org Git - postgis/commitdiff
Fill in actual error condition
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 28 Oct 2009 18:38:03 +0000 (18:38 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 28 Oct 2009 18:38:03 +0000 (18:38 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4692 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geography_gist.c

index c4d511f8b2b4619ab225189d0282ef07b7dfa26f..71208c88e854999fa01875c7b5418b8e770341ea 100644 (file)
@@ -1171,7 +1171,7 @@ Datum geography_gist_picksplit(PG_FUNCTION_ARGS)
                gidx_merge( &box_pageunion, box_current );
        }
        
-       POSTGIS_DEBUGF(4, "[GIST] box_pageunion (%s)", gidx_to_string(box_pageunion));
+       POSTGIS_DEBUGF(3, "[GIST] box_pageunion (%s)", gidx_to_string(box_pageunion));
 
        /* Every box in the page is the same! So, we split and just put half the boxes in each child. */
        if ( all_entries_equal )
@@ -1311,6 +1311,7 @@ Datum geography_gist_picksplit(PG_FUNCTION_ARGS)
        if( direction == -1 || posmax == -1 )
        {
                /* ERROR OUT HERE */
+               elog(ERROR, "Error in building split, unable to determine split direction.");
        }
 
        POSTGIS_DEBUGF(3, "[GIST] 'picksplit' splitting on axis %d", direction);