Add missing CHECK_FOR_INTERRUPTS in lseg_inside_poly
authorAlvaro Herrera
Mon, 14 Dec 2015 19:44:40 +0000 (16:44 -0300)
committerAlvaro Herrera
Mon, 14 Dec 2015 19:44:40 +0000 (16:44 -0300)
commitb9a46f8ba667556b7a9b34c8c36f5d465f3fc7a2
tree397a002983ade4f61ee19088bfd68a709b3d62e2
parentaffae5e981d624735791ab897ff822118005ab44
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.
src/backend/utils/adt/geo_ops.c