[Sqlrelay-discussion] how to ask sqlrelay if the database is not available
Brought to you by:
mused
|
From: Yulius T. <yu...@xf...> - 2005-02-24 23:44:55
|
Hi, I have a couple of issues I'm trying to figure out. 1. We would like to handle a graceful database downtime by having php know that our postgres database is down and display another page. Right now, 0.36-pre2 stalls on sqlrcur_sendQuery if the database is shutdown. Is there a way to not stall and figure out if sqlrelay is connected from php? 2. On 0.36-pre2 if postgres runs out of connection, sqlrelay will crash. To reproduce this, run postgres w/ 10 max connections, run sqlrelay with a pool of greater than 10. On startup, it will crash. This is not a big deal for me since we have a set pool size, but it might be an issue for other people. yulius |