Re: DB transactions when browser freezes

Поиск
Список
Период
Сортировка
От dafNi zaf
Тема Re: DB transactions when browser freezes
Дата
Msg-id CAAega+6g7Da90748NQKm3md5pfC8PVjt5i157f158+GpoofT6A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: DB transactions when browser freezes  (David Johnston <polobo@yahoo.com>)
Список pgsql-general
i execute it periodically and sometimes there is a transaction and other times it's idle:

INSERT INTO traces VALUES (.....)
 or
<IDLE> in transaction

 So it's still running.. even thought there is some idle time.


Thank you very much!


On Thu, Aug 8, 2013 at 5:46 PM, David Johnston <polobo@yahoo.com> wrote:
dafNi wrote
> Should I assume that the transactions keep running?

Never assume...or at least try and verify those assumptions when possible.

To verify this assumption:

Connect to the DB directly as a super-user and run this (or something
similar):

SELECT procpid, current_query, client_addr, xact_start, query_start
        FROM pg_stat_activity
        ORDER BY xact_start ASC, client_addr;

to what activity is currently in-progress.

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/DB-transactions-when-browser-freezes-tp5766824p5766829.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Ian Lawrence Barwick
Дата:
Сообщение: Re: DB transactions when browser freezes
Следующее
От: dafNi zaf
Дата:
Сообщение: Re: DB transactions when browser freezes