© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
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
…
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Drizzle-kit keeps recreating foreign key constraints
DT
Drizzle Team / help
8mo ago
need help with drizzle transactions and foreign key constraints
DT
Drizzle Team / help
2y ago
foreign key
DT
Drizzle Team / help
3y ago
onDelete cascade, Error: VT10001: foreign key constraints are not allowed
DT
Drizzle Team / help
3y ago