Re: idle in transaction
От | Laurenz Albe |
---|---|
Тема | Re: idle in transaction |
Дата | |
Msg-id | ce20bf2057fc38c6c71cdd203d53b3b6f04d44ab.camel@cybertec.at обсуждение исходный текст |
Ответ на | Re: idle in transaction ("David G. Johnston" <david.g.johnston@gmail.com>) |
Список | pgsql-admin |
On Mon, 2023-11-27 at 21:07 -0700, David G. Johnston wrote: > On Monday, November 27, 2023, Nikhil Ingale <niks.bgm@gmail.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. ... and it points towards a problem that is quite unrelated to the actual question. There seems to be an automatism in your application that wraps every statement in a subtransaction to emulate statement-level rollback. That will cause severe performance problems: https://www.cybertec-postgresql.com/en/subtransactions-and-performance-in-postgresql/ So your application is broken not only because it does not close its transactions. Yours, Laurenz Albe
В списке pgsql-admin по дате отправления: