[PATCH v2] Re: Cancel problems of query to pg_stat_statements

From: Roman Khapov <rkhapov(at)yandex-team(dot)ru>
To: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH v2] Re: Cancel problems of query to pg_stat_statements
Date: 2025-05-12 10:48:29
Message-ID: F97A21C3-5EBB-466F-B71D-14F30BD94CF7@yandex-team.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi! Thanks for the review!

Its true that qtext_load_file() can be called with acquired lock in pg_stat_statements_internal()…
So I perform INTERRUPTS_PENDING_CONDITION in v2 patch and call CHECK_FOR_INTERRUPTS later, after cycle ended and lock released.

Attachment Content-Type Size
v2-cancelable-qtext_load_file.patch application/octet-stream 4.4 KB
unknown_filename text/plain 1.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christoph Berg 2025-05-12 10:50:24 libcurl in libpq.pc
Previous Message Amit Kapila 2025-05-12 10:24:34 Re: Add pg_buffercache_mark_dirty[_all] functions to the pg_buffercache