On Sat, Jan 30, 2021 at 12:22 PM Árni Gunnarsson <[email protected]> wrote:

>
>
> The error I get is occasionally. I have this code in an initializer
> DB = Sequel.connect(ENV['DATABASE_URL'])
>
> "PG::ConnectionBad: PQconsumeInput() server closed the connection
> unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request."
>

You might be able to use the connection_validator extension to recognize
disconnected connections and remove them from the connection pool, avoiding
this error.

As to how to best use Sequel with Rails, I'll have to leave the answer to
that to someone else, as I haven't used Rails since 2014.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSSeChDpLciD5T8L9mopL60_LqTZ7E-_BGGY%2BSj5eSkrciQ%40mail.gmail.com.

Reply via email to