Re: [EXT] Re: Troubleshooting a long running delete statement - Mailing list pgsql-performance

From Maciek Sakrejda
Subject Re: [EXT] Re: Troubleshooting a long running delete statement
Date
Msg-id CAOtHd0AF2eDCf8PmEOa=FE+w5=hxpw2uOf4ZdjH5JxU6q6X4CA@mail.gmail.com
Whole thread Raw
In response to RE: [EXT] Re: Troubleshooting a long running delete statement  ("Dirschel, Steve" <steve.dirschel@thomsonreuters.com>)
Responses Re: [EXT] Re: Troubleshooting a long running delete statement  (Corey Huinker <corey.huinker@gmail.com>)
List pgsql-performance
On Wed, Oct 6, 2021 at 1:32 PM Dirschel, Steve <steve.dirschel@thomsonreuters.com> wrote:
Thanks for the reply and the info above.  My question was more directed at how can you troubleshoot the active session running the query.  In the examples above you are actually executing the query.  If an application is executing the query I can't go in an re-execute it. 

This won't be immediately useful, but there's been a patch proposed for Postgres 15 to allow logging the plan of a running query [1]. Progress seems to have stalled a bit, but it seems like there was a fair amount of interest, so I wouldn't count it out yet. If you have thoughts on the proposed functionality, I'm sure thoughtful feedback would be appreciated.

Thanks,
Maciek

pgsql-performance by date:

Previous
From: Michael Lewis
Date:
Subject: Re: Troubleshooting a long running delete statement
Next
From: Corey Huinker
Date:
Subject: Re: [EXT] Re: Troubleshooting a long running delete statement