View using dblink fails if not able to make connection

Поиск
Список
Период
Сортировка
От George Weaver
Тема View using dblink fails if not able to make connection
Дата
Msg-id 08EB543A678741C785111D67A769997A@D420
обсуждение исходный текст
Ответы Re: View using dblink fails if not able to make connection  (Igor Romanchenko <igor.a.romanchenko@gmail.com>)
Список pgsql-general
Hi Everyone,
 
I have a view made up of a local query unioned with a view comprised of a dblink query.
 
If the dblink query cannot establish a connection, I get the "could not connect to server" error and the whole view fails.
 
Setting fail_on_error to false does not work in this situation.
 
Is there any way to test the connection inside the view when the view is called and either return the whole view or just the local component if a dblink connection cannot be made?   
 
Thanks,
George
 
 
 

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

Предыдущее
От: Eliot Gable
Дата:
Сообщение: Re: Out of Shared Memory: max_locks_per_transaction
Следующее
От: Durumdara
Дата:
Сообщение: Phantom read example for new Repeatable Read level