From abee9f73af243f9e69709f485b8751b1c1af9c25 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 28 Oct 2009 18:38:03 +0000 Subject: [PATCH] Fill in actual error condition git-svn-id: http://svn.osgeo.org/postgis/trunk@4692 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/geography_gist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgis/geography_gist.c b/postgis/geography_gist.c index c4d511f8b..71208c88e 100644 --- a/postgis/geography_gist.c +++ b/postgis/geography_gist.c @@ -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); -- 2.50.1