Issue with Drizzle ORM and drizzle-kit push with Tembo Cloud PostgreSQL
Hello everyone,
I'm currently working on a project using Drizzle ORM with PostgreSQL hosted on Tembo Cloud. My PostgreSQL database has the
pg_stat_statements
extension installed by default. I'm encountering an issue when trying to push my schema changes using drizzle-kit
.
Issue:
When I attempt to push my schema changes using drizzle-kit
, I receive a warning about dropping pg_stat_statements
and pg_stat_statements_info
tables, which would cause data loss. Here are the relevant outputs:
Question:
How can I prevent Drizzle ORM from attempting to drop these pg_stat_statements
tables? I've tried using the tablesFilter
and extensionsFilters
settings, but it doesn't seem to work as expected. Any guidance or suggestions would be greatly appreciated!
Repository:
You can find the project repository here: next-graphlq-clerk-drizzle-all-in-one
Thank you in advance for your help!GitHub
apollo-graphql-clerk-drizzle-psql/next-graphlq-clerk-drizzle-all-in...
Contribute to jacksonkasi1/apollo-graphql-clerk-drizzle-psql development by creating an account on GitHub.


2 Replies
Details:
- Database: PostgreSQL on Tembo Cloud (OLTP stack)
- Extension Installed:
pg_stat_statements
Schema Definition:
Drizzle Configuration:
