A successful SELECT 1; on failed connection

Поиск
Список
Период
Сортировка
От Croepha
Тема A successful SELECT 1; on failed connection
Дата
Msg-id CANm61jf4ccA9QcLsY17s-Oi-jpu_iG56=ZX9Dn0D2Nc_UQ896w@mail.gmail.com
обсуждение исходный текст
Ответы Re: A successful SELECT 1; on failed connection  (Marko Kreen <markokr@gmail.com>)
Список psycopg
I am developing a network appliance application that uses psycopg2 to connect to a database through an OpenVPN connection. The application has two modes that it switches between, an online mode and a disconnected mode.  It periodically tries to reconnect once it is in a disconnected mode.  It tests the connection by doing a connection.cursor().execute('SELECT 1;').   The application log reports coming online and then going back offline, but during this time the OpenVPN log reports being offline...

There may be a bug in my application, but I thought I would ask and see if anyone else has seen anything like this?

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

Предыдущее
От: Grant McKenzie
Дата:
Сообщение: Cursor copy_from with server crash
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: Cursor copy_from with server crash