Re: SELECT 'DBD::Pg ping test'

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: SELECT 'DBD::Pg ping test'
Дата
Msg-id 480EF315.3040605@postnewspapers.com.au
обсуждение исходный текст
Ответ на SELECT 'DBD::Pg ping test'  ("sathiya psql" <sathiya.psql@gmail.com>)
Список pgsql-performance
sathiya psql wrote:
> Hi All,
>
> This query is being executed nearly a million times....
>            SELECT 'DBD::Pg ping test'
>
> Why this is being executed ? What is the use ?

A client is sending a query to the server solely to see if the server
responds.

DBD::Pg is the Perl database driver for PostgreSQL. Presumably the
application using that driver has some sort of keepalive or database
connectivity check enabled, so it's periodically issuing these queries.

--
Craig Ringer

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

Предыдущее
От: "sathiya psql"
Дата:
Сообщение: SELECT 'DBD::Pg ping test'
Следующее
От: Hans Ekbrand
Дата:
Сообщение: mysterious difference in speed when combining two queries with OR