Re: vacuum vs open transactions

From: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: vacuum vs open transactions
Date: 2005-01-13 15:45:38
Message-ID: 200501130845.38932.pgsql@bluepolka.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday January 13 2005 5:50, Alvaro Herrera wrote:
> On Wed, Jan 12, 2005 at 11:30:50PM -0700, Michael Fuhr wrote:
> > 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.
>
> now() returns the current transaction's start time.

That would be perfect if I could see that for transactions other than my
own.

Ed

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Support (DBTools Software) 2005-01-13 15:49:54 [ANN] DBManager Professional 3.0.2 Released
Previous Message Ed L. 2005-01-13 15:44:56 Re: vacuum vs open transactions