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.
Appreciate any help.
Appreciate any help.
13 Replies
If it helps...
modifying same code to node-postgres works fine.
checking that now
I can see the schema in types. and it's working well on my side
if you can share some repo example, I'll try to reproduce it and help
If I am reading the error correctly Postgres is not wanting the schema parameter in there.
I made a minimal repo with the exact same code and it is working fine, so it must be an issue somewhere else that is causing a posgres library conflict? Not sure, but I'm going to try to rebuild the client from scratch and see if it clears. Thanks for the reply and will let you know if I still have an issue.
I made a minimal repo with the exact same code and it is working fine, so it must be an issue somewhere else that is causing a posgres library conflict? Not sure, but I'm going to try to rebuild the client from scratch and see if it clears. Thanks for the reply and will let you know if I still have an issue.
Try to remove all node_modules and just reinstall it
may fix your issue
Having this issue rn, will try and be back
Second block seems to be where the issue be (the 2 blocks are 1 diagnostic)
GitHub
[BUG]: PgTransaction Type with ExtractTablesWithRelations errors in...
What version of drizzle-orm are you using? 0.28.0 What version of drizzle-kit are you using? 0.19.12 Describe the Bug When using .array() within a postgres schema, the PgTransaction type with Extra...
I don't know why it's bitching about dbName being a string evne though I never set it
but switching to node-postgres solved it for me
I won't just give up yet
I'll give it a retry once I finish building this damn ting
Update: still complaining with node-postgres, although differently
bun install pg
and you're (partially) good to go 👍fuck
kids, don't forget to run your migrations!
this is so consuming
I need some help
Error [PostgresError]: unrecognized configuration parameter "schema"
Thanks to this individual https://canary.discord.com/channels/1043890932593987624/1110524988164943994/1137736511991857283 who shared his solution
discord is truly amazing, being able to search messages and find what others have tried is really helpful
I basically had to add
?search_path=public
to the DATABASE_URL