title: Ruby Multi Process Postgres Connections
body: <p>I'm thinking about a process infrastructure where a lot of worker processes will be spawned from one master process. Each worker will execute one long running task and will be killed after he finishes his task. In 24h there will be about 100000 Tasks. This won't be a problem until I need to write the result of the tasks into a postgres database, because this would lead to 100000 single Database Connections a day.</p>
  
  <p>So my question is: Is there a way to handle something like a connection pool in the master process and hand over the connection to the child process? And will it be possible, that the child won't close the connection until it finishes (because the owner of the process is the master process) </p>