Add missing CHECK_FOR_INTERRUPTS in lseg_inside_poly

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 0d8f3d5d11f7304c82ce1383bbb491ec6abcffc4
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2015-12-14T19:44:40Z
Releases: 9.6.0
Add missing CHECK_FOR_INTERRUPTS in lseg_inside_poly

Apparently, there are bugs in this code that cause it to loop endlessly.
That bug still needs more research, but in the meantime it's clear that
the loop is missing a check for interrupts so that it can be cancelled
timely.

Backpatch to 9.1 -- this has been missing since 49475aab8d0d.

Files

PathChange+/−
src/backend/utils/adt/geo_ops.c modified +3 −0