| От | Greg Stark |
|---|---|
| Тема | Checking for old transaction snapshots |
| Дата | |
| Msg-id | 87pssg8rpy.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответы |
Re: Checking for old transaction snapshots
|
| Список | pgsql-general |
I have a job that does a big batch delete/insert. I want it to vacuum (or probably cluster) when it's finished. But I figure I should sleep for a while before doing the vacuum to be sure there are no old transactions still running. Is there a simple query I can have it do against the system tables to check for any transactions older either than when the batch delete finished? I'm also interested in verifying that I don't have the problem of the front-end application issuing a BEGIN as soon as a script ends. Ie, starting a transaction that will lie idle until the next page hit that process handles. -- greg
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера