title: How can I pool connections using psycopg and gevent?
body: <p>The psycopg docs state: "Psycopg connections are not green thread safe and can’t be used concurrently by different green threads. Trying to execute more than one command at time using one cursor per thread will result in an error (or a deadlock on versions before 2.4.2).
  Therefore, programmers are advised to either avoid sharing connections between coroutines or to use a library-friendly lock to synchronize shared connections, e.g. for pooling."</p>
  
  <p>I can't find an implementation of pool that is green thread safe - are there any out there?</p>