From: Paul Ramsey Date: Wed, 28 Oct 2009 18:38:03 +0000 (+0000) Subject: Fill in actual error condition X-Git-Tag: 1.5.0b1~334 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abee9f73af243f9e69709f485b8751b1c1af9c25;p=postgis Fill in actual error condition git-svn-id: http://svn.osgeo.org/postgis/trunk@4692 b70326c6-7e19-0410-871a-916f4a2858ee --- 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);