Re: Finding if old transactions are running...
От | Bruce Momjian |
---|---|
Тема | Re: Finding if old transactions are running... |
Дата | |
Msg-id | 200502250111.j1P1Bhk11781@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: Finding if old transactions are running... (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Finding if old transactions are running...
|
Список | pgsql-hackers |
Tom Lane wrote: > 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. And pg_stat_activity can lose information when the network is under heavy load too. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania19073
В списке pgsql-hackers по дате отправления: