随机推荐
Python用psycopg2连接PostgreSQL时server closed the connection unexpectedly
Psycopg2是Python连接到PostgreSQL的常用模块。我使用它时遇到了一个问题:当使用一个已经空闲一段时间的connection时,会有以下异常出现: OperationalError: server closed the connection unexpectedly This probably means the server…


