I think the error occurs when disconnecting from the database: `ActiveRecord::Base.connection.disconnect!` while a query is carried out. I'm not sure if this is a bug in the pg or rails.
Is there a way to work around this? If I have an active query running when using unicorn to do a zero-downtime deployments, I don't really want to kill the active queries. Ideally the page requests should finish.
Can you forward your discussions? It would be nice to get somewhat more information regarding to the UBF and how ko1 thought it should be used.
Regards,
Lars