Re: Detecting backend failures via libpq / DBD::Pg
| От | Greg Sabino Mullane |
|---|---|
| Тема | Re: Detecting backend failures via libpq / DBD::Pg |
| Дата | |
| Msg-id | ce7e8bc38b4418a17a24f8188bd7e876@biglumber.com обсуждение |
| Ответ на | Re: Detecting backend failures via libpq / DBD::Pg (Andrew Gierth <andrew@tao11.riddles.org.uk>) |
| Список | 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@turnstep.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-----
В списке pgsql-hackers по дате отправления: