だから私はあなたの問題を見て、同様の問題を抱えているスレッドを見つけました、そして彼らはmax_inactive_connection_lifetime
を置くことによって回避策を見つけたようでした このような彼らのコードで。 これ
スレッドへのリンクです。
async def create_db_pool():
bot.pg_con = await asyncpg.create_pool(database="dbname",
user="username",
password="dbpw",
max_inactive_connection_lifetime=3)