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.
v2-cancelable-qtext_load_file.patch
D
> On 24 Apr 2025, at 22:49, Roman Khapov wrote:
>
> Hi!
> Recently we faced a problem in out production psql installation, which was
> that we had to cancel all requests to the db, including performance
> monitoring requests, that uses ps_stat_statements. But we could not cancel
> the requ