dblink locked query

Поиск
Список
Период
Сортировка
От Francois Rigaudie
Тема dblink locked query
Дата
Msg-id s5648418.021@gw-tdf1s.tdf.fr
обсуждение исходный текст
Ответы Re: dblink locked query
Список pgsql-hackers
Hi,
 
I am working on a server that send queries to a distant database based on a PHP script executed twice a second.
 
Sometimes, if the distant server goes down the local SELECT dblink query can keep running indefinitly. This is strongly disturbing my server if by night the daily server FULL VACUUM falls on it. Then my whole database access is locked and I find myself with a magnificient DOS of the death.
 
Since there is no timeout possibility with dblink I look for a solution to that problem.
 
Does anyone of yours ever had that kind of trouble ?
 
Is there any [easy] way to stop my local infinite query ? The only way we found for the moment was to kill it (with a SIGQUIT signal) but this unfortunately forces Postgres to restart quite ungracefully for the other connections on the server (too bad).
 
Any idea, testimony, pray, support will be appreciated.
 
Thanks,
 
Francois - Paris.
 
 

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

Предыдущее
От: Dhanaraj
Дата:
Сообщение: Re: how to profile PostGreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] Out of memory error causes Abort, Abort tries to allocate memory