Opened 10 years ago

Closed 10 years ago

#2970 closed enhancement (fixed)

Improve error on interruption of GEOS-implemented functions

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 2.2.0
Component: postgis Version: 2.1.x
Keywords: Cc:

Description

When a GEOS implemented function is interrupted by user request or timeout, the error message that comes out is always something like:

ERROR:  GEOSBuffer: InterruptedException: Interrupted!

Instead, the PostgreSQL error message on interruption is more detailed about the event that triggered interruption, either:

ERROR:  canceling statement due to statement timeout

or

ERROR:  canceling statement due to user request

It would be nice to have the same detail when interrupting GEOS functions.

Change History (1)

comment:1 by strk, 10 years ago

Resolution: fixed
Status: newclosed

r13104 implements this in trunk, not sure how worth it'd be to backport to 2.1 (2.1.0 was the first version adding interruptibility for GEOS functions, as long as GEOS-3.4+ was present at PostGIS build time). What do you think ?

Note: See TracTickets for help on using tickets.