Monitoring for long running transactions

Поиск
Список
Период
Сортировка
От Samuel Smith
Тема Monitoring for long running transactions
Дата
Msg-id d2f5ded1-7820-e25f-2477-403283fbb2d0@net153.net
обсуждение исходный текст
Ответы Re: Monitoring for long running transactions  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
We had a customer complaining of random data loss for the last 6 months 
or so. We eventually tracked it down to a combination of bad coding and 
a couple of bugs with the ORM. Basically, 'BEGIN' was being emitted by 
the web app when viewing a certain page and 'COMMIT' was never emitted 
after that. So once the app would get restarted, all data changes would 
be lost. Definitely worst case scenario.

So the question is, what is the best way to monitor for this scenario 
going forward? Are there any plugins or community recommended scripts 
already made?

Regards,





В списке pgsql-general по дате отправления:

Предыдущее
От: Susan Joseph
Дата:
Сообщение: Re: PostgreSQL 11 with SSL on Linux
Следующее
От: Paul van der Linden
Дата:
Сообщение: Possible improvement