Re: pg_cancel_backend and pg_terminate_backend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wells Oliver schrieb am 19.04.2023 um 21:41:
I usually prefer pg_cancel_backend because it seems.. nicer, but
lately I've had a troublesome user who leaves transactions open and
I've scripted up a call to pg_terminate_backend after 60 minutes in
an idle transaction. It works well.

Why don't you use the idle_in_transaction_session_timeout to do this automatically?






[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux