Check for interrupts in pg_trgm word similarity
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 5 Sep 2022 09:10:57 +0000 (11:10 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 5 Sep 2022 09:10:57 +0000 (11:10 +0200)
commitae4fc52ae24785f51e3dc5a4c7e5b4d206356bdc
treef6cdfaa115f45e31693559b2994d55675e92df72
parent519be095f2bf7150fe7a36c4f5cd0c1825126427
Check for interrupts in pg_trgm word similarity

Calculating similarity between large strings can be timesconsuming
and overrun configured statement timeouts. Check for interrupts in
the main loop to ensure query cancellation can be performed.

Author: Robins Tharakan <tharakan@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAEP4nAxvmfc_XWTz73bqXRhgjONi=1HaX4_NhsopA3L6UvnN1g@mail.gmail.com
contrib/pg_trgm/trgm_op.c