| От | Alvaro Herrera |
|---|---|
| Тема | Re: How to avoid transaction ID wrap |
| Дата | |
| Msg-id | 20060606184758.GE2263@surnet.cl обсуждение исходный текст |
| Ответ на | Re: How to avoid transaction ID wrap (Rod Taylor <pg@rbt.ca>) |
| Список | pgsql-hackers |
Rod Taylor wrote: > With one potential snafu -- it blocks new SELECTs against the parent > table while truncate runs on the child (happens with constraint > exclusion as well). > > If your transactions are short then it won't be an issue. If you have > mixed length transactions (many short which the occasional long select) > then it becomes tricky since those short transactions will be blocked. One idea is to try to acquire the lock before issuing the TRUNCATE itself. If the LOCK TABLE times out, you know you should wait for a long-running transaction ... -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера