Code

postgresql plugin: Don't do any SQL query when checking the connection.
authorSebastian Harl <sh@tokkee.org>
Thu, 8 Mar 2012 20:53:24 +0000 (21:53 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 28 Jan 2013 21:08:21 +0000 (22:08 +0100)
commit58aa55ee691b7c9dbd0e30e39561787d454b3158
tree6d4722fe81680c5eb56ceb2e980039e6a5aacd80
parentcb1de9491fd5fb20eeec551487edf85e97b17579
postgresql plugin: Don't do any SQL query when checking the connection.

First of all, this is not needed -- PQstatus() will correctly determine a
failed connection without that. Secondly, the "SELECT 42" that was used before
does not work, e.g. when querying PgBouncer (thanks to renchap for reporting
this on IRC!).
src/postgresql.c