Python Postgres psycopg2 ThreadedConnectionPool exhausted
Don't pass the parameter close=True. putconn already "closes" the connection. Think of putconn like "put connection back in pool", which is probably what you want.