Re: How to avoid transaction ID wrap

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: How to avoid transaction ID wrap
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: adding new field