Re: Finding if old transactions are running... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Finding if old transactions are running...
Date
Msg-id 25407.1109261647@sss.pgh.pa.us
Whole thread Raw
In response to Re: Finding if old transactions are running...  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Finding if old transactions are running...  (Vsevolod Lobko <seva@sevasoft.kiev.ua>)
Re: Finding if old transactions are running...  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> It sure would be nice to be able to have a way to query the start time
>> of the eldest transaction on the system.  If that could be done at a
>> not-too-high cost, it would be eminently helpful for various sorts of
>> maintenance processes so that you could assortedly:

> You can get that from pg_stat_activity, if you have the relevant stats 
> turned on.

pg_stat_activity will tell you about the oldest active query, but not
about oldest open transaction.
        regards, tom lane


pgsql-hackers by date:

Previous
From: pgsql@mohawksoft.com
Date:
Subject: Re: [pgsql-hackers-win32] win32 performance - fsync
Next
From: "Magnus Hagander"
Date:
Subject: Some download statistics