Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Sam Morris's latest activity

Thursday, June 30 2011
62 Need a way to remove 'bad' connections from a connection pool was updated in psycopg
  • Sam Morris
    Sam Morris commented at 5:07 PM

    Ah, thanks for that information.

    Does this look like the right thing to do in order to get a connection from the pool? Sorry if this sounds like a support reque...

  • Sam Morris
    Sam Morris created the ticket at 10:45 AM

    In the following code:

    c = pool.getconn()
    try:
        f(c)
    finally:
        pool.putconn()
    

    If the database is restarted while f is executing then an OperationalError...