Added support for postgres database retry query on disconnection to res_config_pgsql
authorMark Murawki <markm@intellasoft.net>
Fri, 7 Jan 2011 07:47:36 +0000 (07:47 +0000)
committerMark Murawki <markm@intellasoft.net>
Fri, 7 Jan 2011 07:47:36 +0000 (07:47 +0000)
commita7f9ce2e776e68327c43781256a5b26bd78e9baf
tree3121910928c78e83ff5c30a1e1eaa4a3b37fd218
parenta58b2fb39552923a4944b6ad369bda3703c5a799
Added support for postgres database retry query on disconnection to res_config_pgsql

If your postgres connection died suddenly in between res_config_pgsql
queries, the next query will fail because the query is executed on a
disconnected/disconnecting handle.  The query is abandoned and is
returned from in error.

Now we will reconnect and try again if a query was run on a
disconnected connection.

(closes issue #18071)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@300882 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_config_pgsql.c