drizzle-kit introspect postgres db pg_stat_statement #2410
alexmondaini
started this conversation in
General
Replies: 1 comment 4 replies
-
@alexmondaini I am also using the pg_stat_statements extension (on NeonDB). The extension creates two tables 'pg_stat_statements' and 'pg_stat_statements_info'. Since I don't want to manage those tables with my drizzle schema definition I've added them to the tablesFilter on my drizzle.config.ts file.
After I added these tables to the filter there were no more issues during any of the drizzle-kit commands such as introspect, generate, push. I'm running "drizzle-kit": "0.23.2" and drizzle-orm 0.32.2 |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
Hi everyone,
I am introspecting a postgres database from the public schema , and dizzle introspects even internal postgres tables like
pg_stat_statements
. I would not like to instrospect such tables that are managed by potgres itself. Additionaly after instropecting I also get an error for theoid
datatype://TODO: failed to parse database type 'oid'
userid: unknown('userid')
I use typescript and my liniting complains about
unknown
Beta Was this translation helpful? Give feedback.
All reactions