Disabling Prepared statements #28239
TheOtherBrian1
announced in
Troubleshooting
Replies: 3 comments 6 replies
|
What happens if we don't use prepared statements and also don't disable them? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
It is important to note that although the direct connections and Supavisor in session mode support prepared statements, Supavisor in transaction mode does not.
How to disable prepared statements for Supavisor in transaction mode
Each ORM or library configures prepared statements differently. Here are settings for some common ones. If you don't see yours, make a comment
Prisma:
add ?pgbouncer=true to end of connection string:
Drizzle:
Add a prepared false flag to the client:
Node Postgres
Omit the "name" value in a query definition:
Psycopg
set the prepare_threshold to
None.asyncpg
Follow the recommendation in the asyncpg docs
Rust's Deadpool or
tokio-postgres:All reactions