Improve reliability of PostgreSQL connections 103/head
authorMichael Marley <michael@michaelmarley.com>
Fri, 19 Dec 2014 00:02:45 +0000 (19:02 -0500)
committerMichael Marley <michael@michaelmarley.com>
Fri, 19 Dec 2014 02:58:01 +0000 (21:58 -0500)
commitf11377872cde42c47b3354b8e660cb2025ceffd8
tree552ac7daa1074e2a9d1acd5df15035abc02c8bd9
parentbd295c044a8a8d2bb4efc1e8b0607a404b0db42c
Improve reliability of PostgreSQL connections

This patch adds support for detecting that a query failed due to
the DB connection being down and attempts to reconnect before
retrying the query.  It does this for opening transactions,
safeExec(), and prepareAndExecuteQuery().
src/core/postgresqlstorage.cpp
src/core/postgresqlstorage.h