Thanks for the input, it seems to happen less often with that extension, 
maybe using Sequel and AR in the same project doesn't mix well, I don't 
know.

laugardagur, 30. janúar 2021 kl. 22:06:49 UTC skrifaði Jeremy Evans:

> 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/0392ad9b-ff57-401e-9702-17955e7c2f03n%40googlegroups.com.

Reply via email to