Re: BUG #17990: PSQL Process hangs in parallel mode

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: ess(dot)bee59(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17990: PSQL Process hangs in parallel mode
Date: 2023-06-25 22:12:40
Message-ID: CA+hUKGLe6XszU6jpA0NRG1ykY0gCjkPAUU0+1f9WDZ_YKfC60w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Jun 23, 2023 at 8:47 PM PG Bug reporting form
<noreply(at)postgresql(dot)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 ...?

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Munro 2023-06-26 00:25:14 Re: BUG #17949: Adding an index introduces serialisation anomalies.
Previous Message Tom Lane 2023-06-25 14:40:58 Re: BUG #17997: Assert failed in validatePartitionedIndex() when attaching partition index to child of valid index