Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Added comment regarding disabling of prepare (#18772)

Ali Waseem317fc43be141
diff --git a/apps/docs/pages/guides/database/connecting-to-postgres.mdx b/apps/docs/pages/guides/database/connecting-to-postgres.mdx
index 2ba169eb9bd..da0292c3afe 100644
--- a/apps/docs/pages/guides/database/connecting-to-postgres.mdx
+++ b/apps/docs/pages/guides/database/connecting-to-postgres.mdx
@@ -183,7 +183,9 @@ This is the most granular option. Connections are returned to the pool after eve
import { users } from './schema'
const connectionString = process.env.DATABASE_URL
- const client = postgres(connectionString)
+
+ // Disable prefetch as it is not supported for "Transaction" pool mode
+ const client = postgres(connectionString, { prepare: false })
const db = drizzle(client);
const allUsers = await db.select().from(users);