On Monday, November 27, 2023, Nikhil Ingale <niks(dot)bgm(at)gmail(dot)com> wrote:
> How do I find out what query is it running?
>
> SAVEPOINT _per_query_svp_;DEALLOCATE "_PLAN0x7fdd58004550";RELEASE
> _per_query_svp_
>
That is the last command (multi-statement though it is) that was executed
before the transaction/session went idle.
David J.