© 2026 Hedgehog Software, LLC

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

Deferrable foreign key constraints

Hi, does anyone know a way to declare deferrable foreign key constraints when defining a Postgres table using
pgTable
pgTable
, and a way to issue
SET CONSTRAINTS
SET CONSTRAINTS
within a transaction when querying in Drizzle? Thanks!

https://www.postgresql.org/docs/current/sql-set-constraints.html
PostgreSQL Documentation
SET CONSTRAINTS
SET CONSTRAINTS SET CONSTRAINTS — set constraint check timing for the current transaction Synopsis SET CONSTRAINTS { ALL | name …
SET CONSTRAINTS
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

Drizzle-kit keeps recreating foreign key constraints
Drizzle TeamDTDrizzle Team / help
8mo ago
need help with drizzle transactions and foreign key constraints
Drizzle TeamDTDrizzle Team / help
2y ago
foreign key
Drizzle TeamDTDrizzle Team / help
3y ago
onDelete cascade, Error: VT10001: foreign key constraints are not allowed
Drizzle TeamDTDrizzle Team / help
3y ago