Re: reconnecting to DB after connection break

Поиск
Список
Период
Сортировка
От Chuck McDevitt
Тема Re: reconnecting to DB after connection break
Дата
Msg-id 2106D8DC89010842BABA5CD03FEA40610100FB8145@EXVMBX018-10.exch018.msoutlookonline.net
обсуждение исходный текст
Ответ на reconnecting to DB after connection break  (Julius Tuskenis <julius.tuskenis@gmail.com>)
Ответы Re: reconnecting to DB after connection break  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgadmin-hackers
> -----Original Message-----
> From: pgadmin-hackers-owner@postgresql.org [mailto:pgadmin-hackers-
> owner@postgresql.org] On Behalf Of Julius Tuskenis
> Sent: Friday, August 21, 2009 3:16 AM
> To: pgadmin-hackers@postgresql.org
> Subject: [pgadmin-hackers] reconnecting to DB after connection break
> 
> Hello,
> 
> I'm thinking of changing pgAdmin so it would try to reconnect after its
> connection to server breaks. Is that ok with you? Maybe theres someone
> already dealing with the problem.
> 
> I think I could change pgConn::ExecuteVoid, pgConn::ExecuteScalar and
> pgConn::ExecuteSet methods so on connection to DB error there would be
> an attempt to reconnect. If someone knows a better solution - please,
> share it. :)
> 
> I'm new here so maybe someone would advice what "pitfalls" to avoid.
> 
> --
> Julius Tuskenis
> 

Sounds like a good idea.  The one pitfall I see is that any temporary tables the session had disappear when you
disconnectand reconnect, but I don't think there is anything to be done about that.
 



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

Предыдущее
От: Ângelo Marcos Rigo
Дата:
Сообщение: ...
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: reconnecting to DB after connection break