Re: Idle in transaction help

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Idle in transaction help
Дата
Msg-id 20090711153935.GA23823@svana.org
обсуждение исходный текст
Ответ на Re: Idle in transaction help  ("Scot Kreienkamp" <SKreien@la-z-boy.com>)
Список pgsql-general
On Fri, Jul 10, 2009 at 08:40:28PM -0400, Scot Kreienkamp wrote:
> Anyway, I'm trying to attack it from the database side out since I am
> not a programmer and can't help with that part.  I can do simple CGIs
> with bash, but I don't know Java or C or even Perl yet for that matter.
> Since you guys are the experts, I'm looking for any way to attack this
> problem from the database side.  The tips I've gotten about the JDBC
> driver and commits are helpful in that it gives our programmers things
> to watch out for that we didn't realize, and I'm open to any suggestions
> from the list about how I can help attack this.

One easy approach, get the database to log all queries, complete with
PID, then when you find an indle-in-transaction, go to the logs to find
the last query executed...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Вложения

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

Предыдущее
От: Martin Gainty
Дата:
Сообщение: Re: Using Postgres to store genetic data
Следующее
От: Tom Lane
Дата:
Сообщение: Re: XML import with DTD