pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Check for interrupts in pg_trgm word similarity
Date: Mon, 05 Sep 2022 09:22:39 +0000
Message-ID: <E1oV8JT-001XNj-43@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ae4fc52ae24785f51e3dc5a4c7e5b4d206356bdc

Modified Files
--------------
contrib/pg_trgm/trgm_op.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



Message-ID: <E1oV8JT-001XNj-43@gemulon.postgresql.org>
Permalink:  ../E1oV8JT-001XNj-43@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oV8JT-001XNj-43@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org
  Subject: Re: pgsql: Check for interrupts in pg_trgm word similarity
  In-Reply-To: <E1oV8JT-001XNj-43@gemulon.postgresql.org>
  References: <E1oV8JT-001XNj-43@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox