Re: vacuum vs open transactions - Mailing list pgsql-general

From Michael Fuhr
Subject Re: vacuum vs open transactions
Date
Msg-id 20050113063050.GA72291@winnie.fuhr.org
Whole thread Raw
In response to Re: vacuum vs open transactions  ("Ed L." <pgsql@bluepolka.net>)
Responses Re: vacuum vs open transactions  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: vacuum vs open transactions  ("Ed L." <pgsql@bluepolka.net>)
List pgsql-general
On Wed, Jan 12, 2005 at 11:49:12AM -0700, Ed L. wrote:
>
> Is it possible via SQL query to tell how long a transaction has been open?

I'm not aware of a way to find out when a transaction started, but
if you have stats_command_string enabled then you can query
pg_stat_activity to see when a session's current query started.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Tony Caduto
Date:
Subject: Working on a new Postgres Admin tool and was wondering...
Next
From: Michael Fuhr
Date:
Subject: Re: Question about pg_stat_activity