pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedSELECT 'DBD::Pg ping test'
3+ messages / 3 participants
[nested] [flat]
* SELECT 'DBD::Pg ping test'
@ 2008-04-23 07:19 sathiya psql <sathiya.psql@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: sathiya psql @ 2008-04-23 07:19 UTC (permalink / raw)
To: pgsql-performance
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 ?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SELECT 'DBD::Pg ping test'
@ 2008-04-23 08:28 Craig Ringer <craig@postnewspapers.com.au>
parent: sathiya psql <sathiya.psql@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Craig Ringer @ 2008-04-23 08:28 UTC (permalink / raw)
To: sathiya psql <sathiya.psql@gmail.com>; +Cc: 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SELECT 'DBD::Pg ping test'
@ 2008-04-23 16:40 Jeffrey Baker <jwbaker@gmail.com>
parent: sathiya psql <sathiya.psql@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey Baker @ 2008-04-23 16:40 UTC (permalink / raw)
To: sathiya psql <sathiya.psql@gmail.com>; +Cc: pgsql-performance
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2008-04-23 16:40 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-04-23 07:19 SELECT 'DBD::Pg ping test' sathiya psql <sathiya.psql@gmail.com>
2008-04-23 08:28 ` Craig Ringer <craig@postnewspapers.com.au>
2008-04-23 16:40 ` Jeffrey Baker <jwbaker@gmail.com>
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