Re: SELECT 'DBD::Pg ping test'

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: sathiya psql <sathiya(dot)psql(at)gmail(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: SELECT 'DBD::Pg ping test'
Date: 2008-04-23 08:28:05
Message-ID: 480EF315.3040605@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message A. Kretschmer 2008-04-23 08:57:04 Re: mysterious difference in speed when combining two queries with OR
Previous Message A. Kretschmer 2008-04-23 07:58:10 Re: mysterious difference in speed when combining two queries with OR