Unix Technical Forum

SELECT 'DBD::Pg ping test'

This is a discussion on SELECT 'DBD::Pg ping test' within the Pgsql Performance forums, part of the PostgreSQL category; --> Hi All, This query is being executed nearly a million times.... SELECT 'DBD::Pg ping test' Why this is being ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-24-2008, 07:16 PM
sathiya psql
 
Posts: n/a
Default SELECT 'DBD::Pg ping test'

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 ?

Am sure that this query is not executed explicitly.

am using postgres 8.1

Any idea ?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 07:16 PM
Craig Ringer
 
Posts: n/a
Default Re: SELECT 'DBD::Pg ping test'

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

--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 07:16 PM
Jeffrey Baker
 
Posts: n/a
Default Re: SELECT 'DBD::Pg ping test'

On Wed, Apr 23, 2008 at 12:19 AM, sathiya psql <sathiya.psql@gmail.com> wrote:
> Hi All,
>
> This query is being executed nearly a million times....
> SELECT 'DBD::Pg ping test'


Something in your Perl application is use $dbh->ping(). See perldoc
DBI. It's possible that this is happening under the hood, because
your application is using connect_cached() instead of connect().

-jwb

--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com