erleans / pgo

Erlang Postgres client and connection pool
Apache License 2.0
80 stars 16 forks source link

Add ensure_all_started to make it obvious you need the application #73

Closed chiroptical closed 2 months ago

chiroptical commented 1 year ago

I was trying out pgo for the first time and was getting some really difficult and massive error messages. Luckily, I found this: https://erlangforums.com/t/getting-errors-connecting-to-postgresql-reason-for-termination-error-badmatch-undefined/1760.

Here, I am adding a very basic application:ensure_all_started(pgo). to the instructions to make it more obvious that you need to start the application as well as start the pool in the application's supervisor (or via the shell).

This might be obvious to many, but it wasn't obvious as a newcomer to Erlang. As far as I can tell, pgo is the only PG client that actually explains how to start it which is really nice.

chiroptical commented 1 year ago

@tsloughter I don't think the checks will ever run on this (or eventually will fail). I put up #74 which may get them to start running again.