Numerical time series data + Erlang + Postgres