Re: connections and cpu consumption

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: connections and cpu consumption
Дата
Msg-id 4EBADB3D.9070608@hogranch.com
обсуждение исходный текст
Ответ на Re: connections and cpu consumption  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Ответы Re: connections and cpu consumption  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
On 11/09/11 11:35 AM, Gauthier, Dave wrote:
> Ahhhh... so if the script that has the connection open would only terminate the transaction, then vacuum wouldn't get
behind?
>
> I actually made a change in that script to rollback when the script doesn't need the changes in the transaction,
hopefullyallowing vacuum to do its thing. 

(from memory, I might have details wrong here)...

     select now()-xact_start as "Transaction Age", usename, datname,
procpid, application_name
         from pg_stat_activity where current_query='<IDLE> in
transaction" order by 1 desc;

that will list the age of those idle-in-transactions, oldest on top.

--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


В списке pgsql-general по дате отправления:

Предыдущее
От: Cody Caughlan
Дата:
Сообщение: Insufficient privilege when initiating backup
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Insufficient privilege when initiating backup