[PATCH v2] Re: Cancel problems of query to pg_stat_statements
Roman Khapov <rkhapov@yandex-team.ru>
From: Roman Khapov <rkhapov@yandex-team.ru>
To: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2025-05-12T10:48:29Z
Lists: pgsql-hackers
Attachments
- v2-cancelable-qtext_load_file.patch (application/octet-stream)
- (unnamed) (text/plain)
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.