Re: Detecting backend failures via libpq / DBD::Pg

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Detecting backend failures via libpq / DBD::Pg
Date: 2014-12-30 15:43:12
Message-ID: ce7e8bc38b4418a17a24f8188bd7e876@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Andrew Gierth asked:
>> this is to send a simple SELECT via PQexec
>
> Why not PQexec(conn, "") ?

Because I want to leave a good clue for debugging; so
DBAs are better able to figure out where a mystery slew of
queries is coming from. The query is: SELECT 'DBD::Pg ping test'

Which also means the inverse is true: simple blank queries
are guaranteed to *not* be coming from DBD::Pg.

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201412301041
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAlSix/YACgkQvJuQZxSWSsjILwCdHnkhYC1i+LJZkNUWjfTi5yG+
FHwAn007+arJIw62gIUO20+SxnzRT4ub
=9Rym
-----END PGP SIGNATURE-----

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Adrian Klaver 2014-12-30 15:54:04 Re: [HACKERS] ON_ERROR_ROLLBACK
Previous Message David G Johnston 2014-12-30 15:43:01 Re: [HACKERS] ON_ERROR_ROLLBACK