Re: dblink locked query

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: dblink locked query
Дата
Msg-id 52EF20B2E3209443BC37736D00C3C1380B8EF484@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на dblink locked query  ("Francois Rigaudie" <francois.rigaudie@tdf.fr>)
Список pgsql-hackers
Tom Lane answered to a question from Francois Rigaudie:
>> Since there is no timeout possibility with dblink I look for a
solution to
>> that problem.
>
> Doesn't statement_timeout work?

To expand on this:
dblink will login as a certain user on the remote database.
If your design is good, this is a dedicated user only for this
purpose.

You can then
ALTER ROLE <user> SET statement_timeout = 10000
for that user on the remote database to have all statements
canceled when they take longer than 10 seconds.

Yours,
Laurenz Albe


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Vacuum columns in statistics tables
Следующее
От: "Francois Rigaudie"
Дата:
Сообщение: Rép. : Re: dblink locked query