pgapp
pgapp copied to clipboard
Erlang Postgres application that uses Poolboy and deals with the database being unavailable
Hey there! Are there any plans for telemetry support? https://github.com/beam-telemetry/telemetry I'd be interested in metrics like how long it takes to checkout a connection, checkout rate etc (there are probably...
Address issue #30
This affects the dependencies in the rebar.config, both epgsql and poolboy. While trying to fetch the deps during compilation it fails.
### Problem `pgapp_worker` expects to have one child `epgsql_sock` which is the connection to the database. The function `handle_info({'EXIT', From, Reason}, State)` deals with the case when this child dies...
The README file contains this example: ``` pgapp:with_transaction(fun() -> pgapp:squery("update ..."), pgapp:squery("delete from ..."), pgapp:equery("select ? from ?", ["*", Table]) end). ``` The problem in this approach is that "BEGIN"...
`pgapp` assumes that `pgapp:squery` and `pgapp:equery` in the callback function in `with_transaction` must not contain `PoolName` if you want those queries to be executed inside the transaction. While this is...
Running extremely slow querries, that time out can result in the entire pool becoming unusable. So far it looks like the following happens: We have: A pool with the workers...
This PR take a brutal approach at assassinating workers that happen to time out due to long running requests! This might not be the perfect solution, I'm more then open...