Re: an efficient way of checking if the connection to a db

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: an efficient way of checking if the connection to a db
Дата
Msg-id 17552.1134685460@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: an efficient way of checking if the connection to a db  (Kris Jurka <books@ejurka.com>)
Ответы Re: an efficient way of checking if the connection to a db  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Kris Jurka <books@ejurka.com> writes:
> Getting the official driver to provide this interface would require
> demonstrating that the overhead of SELECT 1 is significantly higher than
> Sync.

It probably is.  However, sending an empty query string to the backend
to execute ought to be competitive with a bare Sync.  libpq supports
that; does JDBC?

            regards, tom lane

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: CallableStatements: index starts at 2
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: an efficient way of checking if the connection to a db