Database Error: remaining connection slots are reserved for non-replication superuser connections
当数据库达到基于计算附加模块允许的最大连接数时,通常会出现这个错误。
🌐 This error usually occurs when the database reaches the maximum number of connections allowed based on the compute add-on.
要解决这个问题,需要像这里提到的那样优化连接:https://supabase.com/docs/guides/platform/performance#optimizing-the-number-of-connections
🌐 To overcome this, the connections need to be optimized as mentioned here: https://supabase.com/docs/guides/platform/performance#optimizing-the-number-of-connections
另外,你可以尝试使用连接池来帮助解决这个问题: https://supabase.com/docs/guides/database/connecting-to-postgres#connection-pooler
🌐 Additionally, you can try using the connection pool to help solve this issue: https://supabase.com/docs/guides/database/connecting-to-postgres#connection-pooler
如果你已经在使用连接池,但仍然达到了最大连接数,那么建议升级你的计算附加组件,以允许更多连接:https://supabase.com/docs/guides/platform/compute-and-disk
🌐 If you're already using connection pooling and still hitting the maximum connections, then it is suggested to upgrade your compute add-on that allows more connections: https://supabase.com/docs/guides/platform/compute-and-disk