pgsql: Add missing CHECK_FOR_INTERRUPTS in lseg_inside_poly

Lists: pgsql-committers
From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add missing CHECK_FOR_INTERRUPTS in lseg_inside_poly
Date: 2015-12-14 19:45:59
Message-ID: E1a8Z4J-0004Cb-Qv@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0d8f3d5d11f7304c82ce1383bbb491ec6abcffc4

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 3 +++
1 file changed, 3 insertions(+)