Open awalias opened 5 months ago
Would love a solution/guidance here 🙏 so far the likely option is moving to Session mode, though given our Supabase Max client connections
is fixed i would be pretty concerned about exhausting allowed connections
Any updates on this? Besides moving to sync Session mode?
Same, would love this functionality as well - Any updates?
I ran into this too. I have IPv6 at home, so I can switch to port 5432 and bypass it, but at work where I don't have IPv6, I'm forced to use Supavisor which leads to this error:
An error occurred: (sqlalchemy.dialects.postgresql.asyncpg.Error) <class 'asyncpg.exceptions.InvalidSQLStatementNameError'>: prepared statement "asyncpg_stmt_7" does not exist HINT:
NOTE: pgbouncer with pool_mode set to "transaction" or "statement" does not support prepared statements properly. You have two options:
if you are using pgbouncer for connection pooling to a single server, switch to the connection pool functionality provided by asyncpg, it is a much better option for this purpose;
if you have no option of avoiding the use of pgbouncer, then you can set statement_cache_size to 0 when creating the asyncpg connection object.
[SQL: SELECT * FROM public.users WHERE identifier = $1] [parameters: ('admin',)] (Background on this error at: https://sqlalche.me/e/20/dbapi)
Discussed in https://github.com/orgs/supabase/discussions/20775