XP is just a number | |
PerlMonks |
Re: Handle DBI connection lostby Mr. Muskrat (Canon) |
on Feb 23, 2017 at 16:04 UTC ( [id://1182656]=note: print w/replies, xml ) | Need Help?? |
I have a non-Perl answer but it's probably the best answer that you will receive. Install pgbouncer and point the app at it. Before you restart the database, connect to pgbouncer and pause all connections to that database. Then you can restart the database. Once the database comes back up, unpause the connections in pgbouncer. PostgreSQL restart with PgBouncer without losing client connections (YouTube)
In Section
Seekers of Perl Wisdom
|
|