An engineer helping me on an OSS project is running into
[Error [PostgresError]: remaining connection slots are reserved for non-replication superuser connections]
[Error [PostgresError]: remaining connection slots are reserved for non-replication superuser connections]
With
[cause]: [Error[PostgresError]: sorry, too many clients already]
[cause]: [Error[PostgresError]: sorry, too many clients already]
This is locally connected to docker. Our drizzle setup looks like this
import { drizzle } from 'drizzle-orm/postgres-js'import postgres from 'postgres'import * as schema from './schema'import { env } from '@/app/env'const connectionString = env.POSTGRES_URLconst client = postgres(connectionString, { prepare: false })// Use this object to send drizzle queries to your DBexport const db = drizzle(client, { schema })
import { drizzle } from 'drizzle-orm/postgres-js'import postgres from 'postgres'import * as schema from './schema'import { env } from '@/app/env'const connectionString = env.POSTGRES_URLconst client = postgres(connectionString, { prepare: false })// Use this object to send drizzle queries to your DBexport const db = drizzle(client, { schema })
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.