with internal interruptions.
References #4070
git-svn-id: http://svn.osgeo.org/postgis/trunk@16561
b70326c6-7e19-0410-871a-
916f4a2858ee
* case we let PostgreSQL deal with the error.
*/
#define HANDLE_GEOS_ERROR(label) { \
- if ( ! strstr(lwgeom_geos_errmsg, "InterruptedException") ) \
- lwpgerror(label": %s", lwgeom_geos_errmsg); \
+ if (strstr(lwgeom_geos_errmsg, "InterruptedException")) \
+ ereport(ERROR, (errcode(ERRCODE_QUERY_CANCELED), errmsg("canceling statement due to user request"))); \
+ else \
+ lwpgerror(label ": %s", lwgeom_geos_errmsg); \
PG_RETURN_NULL(); \
}