You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Get error from asyncpg when set custom schema in connection credentials: asyncpg.exceptions.ProtocolViolationError: unsupported startup parameter: search_path
To Reproduce CREATE SCHEMA IF NOT EXISTS notpublic
Seems that asyncpg + pgbouncer doesn't work well together unless using pool_mode=session as per MagicStack/asyncpg#339
It seems the issue is that asyncpg sets up remote state for performance, and pgbouncer is stateless. This is an issue because to do safe parametrised queries postgres requires a two-step instruction (prepare + call) and asyncpg assumes that this is available.
If the problem goes away if you set the pool_mode, then it is very likely the issue is what is descrivbed there, and we can implement a work-around so it at least works.
Describe the bug
Get error from asyncpg when set custom schema in connection credentials:
asyncpg.exceptions.ProtocolViolationError: unsupported startup parameter: search_path
To Reproduce
CREATE SCHEMA IF NOT EXISTS notpublic
Expected behavior
Successfully init
Additional context
Support schema added in #172 and changed in #229
The text was updated successfully, but these errors were encountered: