pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make generate_queries_for_path_pattern_recurse() interruptible
Date: Fri, 14 Aug 2026 13:23:17 +0000
Message-ID: <E1wursS-00000000YPs-1Rq8@gemulon.postgresql.org> (raw)

Make generate_queries_for_path_pattern_recurse() interruptible

In case of a very long path pattern with each element pattern being
resolved to many graph elements
generate_queries_for_path_pattern_recurse() may take very long time to
generate all the possible graph paths.  Make
generate_queries_for_path_pattern_recurse() interruptible so that a
user may be able to cancel such a query if required and the interrupts
are processed in timely manner.

Author: Satyanarayana Narlapuram <satyanarlapuram@gmail.com>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAHg%2BQDfDwcM4%3DDSiAV6Ly89YQ5EcMhzO1-9x%3DmGG1WJzODcAig...

Branch
------
master

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

Modified Files
--------------
src/backend/rewrite/rewriteGraphTable.c | 2 ++
1 file changed, 2 insertions(+)



view thread (2+ messages)

Message-ID: <E1wursS-00000000YPs-1Rq8@gemulon.postgresql.org>
Permalink:  ../E1wursS-00000000YPs-1Rq8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wursS-00000000YPs-1Rq8@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Make generate_queries_for_path_pattern_recurse() interruptible
  In-Reply-To: <E1wursS-00000000YPs-1Rq8@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