This works wonderfully. If you have any long running queries, though, the PAUSE won't pause until they have finished.
I love pgbouncer, it is such a great tool.
I love pgbouncer, it is such a great tool.
Most of our queries are fast, and the longer ones hit a read-only secondary instance. Cleanup jobs, though, can take hours to complete.