| От | Christopher Browne |
|---|---|
| Тема | Re: Finding if old transactions are running... |
| Дата | |
| Msg-id | m3mztu7edm.fsf@knuth.knuth.cbbrowne.com обсуждение |
| Ответ на | Finding if old transactions are running... (Christopher Browne <cbbrowne@acm.org>) |
| Список | pgsql-hackers |
In an attempt to throw the authorities off his trail, Christopher Browne <cbbrowne@acm.org> transmitted:
> It sure would be nice to be able to have a way to query the start
> time of the eldest transaction on the system.
I can see this function available in the backend:
TransactionId GetOldestXmin(bool alldbs);
The cost is based on walking thru each backend process, which I guess
is obvious, as if there are 47 backends, that means 47 xids.
Presumably not _too_ expensive; certainly something that has to be run
every time a vacuum is requested.
Is there a way to expose this? Without "leaping into grand evil?"
--
output = ("cbbrowne" "@" "gmail.com")
http://linuxdatabases.info/info/languages.html
If you're not part of the solution, you're part of the precipitate.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера