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

From Michael Fuhr
Subject Re: vacuum vs open transactions
Date
Msg-id 20050113170215.GB80786@winnie.fuhr.org
Whole thread Raw
In response to Re: vacuum vs open transactions  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-general
On Thu, Jan 13, 2005 at 09:50:38AM -0300, Alvaro Herrera wrote:
> On Wed, Jan 12, 2005 at 11:30:50PM -0700, Michael Fuhr wrote:
> >
> > 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.

I meant when any transaction started, particularly a transaction
other than the current one.

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

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Adding UNIQUE constraint on NULL column
Next
From: Doug McNaught
Date:
Subject: Re: Adding UNIQUE constraint on NULL column