Re: BUG #17990: PSQL Process hangs in parallel mode - Mailing list pgsql-bugs

From Thomas Munro
Subject Re: BUG #17990: PSQL Process hangs in parallel mode
Date
Msg-id CA+hUKGLe6XszU6jpA0NRG1ykY0gCjkPAUU0+1f9WDZ_YKfC60w@mail.gmail.com
Whole thread Raw
In response to BUG #17990: PSQL Process hangs in parallel mode  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Fri, Jun 23, 2023 at 8:47 PM PG Bug reporting form
<noreply@postgresql.org> wrote:
> My questions: (as I could not find a corresponding bug in the pgsql-bugs)
> Is a similar issue allready known?
> Can anybody recommend a change (update, patch, configuration parameter)?
> What could I provide for further analysis (pg_stat_activity) ?

It sounds like something may be wrong, because it should respond to
cancellation promptly (unless perhaps the system is completely swamped
due to resource issues and not responding to anything but it didn't
sound like that from your description).  Before and after you cancel
the query, what do the 'hanging' processes show in the wait_event
column of pg_stat_activity?  Are they still consuming CPU after you
cancel?  Can you get a backtrace of the running processes, with
something like gstack (it may help to install the 'debug symbol'
package for PostgreSQL).  What does the query plan look like, ie
EXPLAIN SELECT ...?



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17997: Assert failed in validatePartitionedIndex() when attaching partition index to child of valid index
Next
From: Thomas Munro
Date:
Subject: Re: BUG #17949: Adding an index introduces serialisation anomalies.