© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
21 replies
raaden

PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js

Getting the error when I add schema to the call drizzle(client, {schema})
using version
"drizzle-orm": "^0.28.5",
"postgres": "^3.3.5",
Error goes away when schema is removed.

import { drizzle, type PostgresJsDatabase } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
const queryClient = postgres(process.env.DATABASE_URL, { max: 10 });
export const dbClient: PostgresJsDatabase<typeof dbSchema> = drizzle(queryClient, { schema: dbSchema });
import { drizzle, type PostgresJsDatabase } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
const queryClient = postgres(process.env.DATABASE_URL, { max: 10 });
export const dbClient: PostgresJsDatabase<typeof dbSchema> = drizzle(queryClient, { schema: dbSchema });


Appreciate any help.
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

PostgresError: unrecognized configuration parameter "schema"
Drizzle TeamDTDrizzle Team / help
3y ago
Type for schema when creating db client
Drizzle TeamDTDrizzle Team / help
2y ago
postgres-js migration configuration
Drizzle TeamDTDrizzle Team / help
3y ago
Are postgres CONSTRAINTS supported when creating a table schema?
Drizzle TeamDTDrizzle Team / help
3y ago