Sergey Prokhorov
Sergey Prokhorov
Introduce options in epgsql to deal with potential OOM from statements returning big volumes of data
Another option to mention is that we can start epgsql process with [`max_heap_size` option](http://erlang.org/doc/man/erlang.html#spawn_opt-5) here: https://github.com/epgsql/epgsql/blob/f0d07e3fffd406d96dbb64bd1ac56f00cb7b7088/src/epgsql_sock.erl#L103 smth like `gen_server:start_link(?MODULE, [], [], [{spawn_opts, [{max_heap_size, XXX}]}]).`. But it only controls heap size,...
Introduce options in epgsql to deal with potential OOM from statements returning big volumes of data
Somewhat related: https://github.com/ninenines/cowboy/pull/1422 (can be used as an inspiration)
Hi. You can patch epgsql to suppress this kind of error here: https://github.com/epgsql/epgsql/blob/f8a5acc2e965c185f39150dc9d17bc75448d8a67/src/commands/epgsql_cmd_connect.erl#L83 so, replace `Reason` with `normal`. But I'm not sure making this a default is a good idea....
Regarding replication errors: can you post some examples?
Hi. Well, I think addition of those 3 files should not break anything AFAIK, but I'm a bit worried that they may need to be updated from time to time...
> and rebar3 overwrites it based on the .app.src file in src/ It doesn't look so. I tried to create a `ebin/` and run `rebar3 compile` - directory is still...
1. Yep, good idea. I hope nobody uses it from outside of epgsql 2. I never seen anyone prefixing names of `.hrl` files. Why do this? When one include an...
So, perhaps someone would like to try to implement decimal support based on work from #153 ?
@bullno1 I would say separate project sounds better. That was one of the reasons I did this "pluggable types" feature - to be able to plug external codecs. I'm already...
I don't want to say that we should move away as much as possible. But the thing is that `hstore` is a contrib datatype (to be able to test it...