pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: sathiya psql <sathiya.psql@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: SELECT 'DBD::Pg ping test'
Date: Wed, 23 Apr 2008 16:28:05 +0800
Message-ID: <480EF315.3040605@postnewspapers.com.au> (raw)
In-Reply-To: <f966c2ee0804230019x482f6312q35117a336a4f2d67@mail.gmail.com>
References: <f966c2ee0804230019x482f6312q35117a336a4f2d67@mail.gmail.com>

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



view thread (3+ messages)  latest in thread

Message-ID: <480EF315.3040605@postnewspapers.com.au>
Permalink:  ../480EF315.3040605@postnewspapers.com.au/
Also on:    postgresql.org/message-id/480EF315.3040605@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: craig@postnewspapers.com.au, sathiya.psql@gmail.com
  Subject: Re: SELECT 'DBD::Pg ping test'
  In-Reply-To: <480EF315.3040605@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox