CommonDataModel icon indicating copy to clipboard operation
CommonDataModel copied to clipboard

Change foreign key constraints to be deferrable in PostgreSQL DDL (and possibly others?)

Open ekorchmar opened this issue 2 years ago • 0 comments

Would it make sense to introduce "DEFERRABLE" keyword when creating foreign key constraints in these tables? It simplifies process of actually populating tables from Athena downloads or making local changes, without having to drop and re-create constraints.

file in question

Links:

  • https://www.postgresql.org/docs/current/sql-set-constraints.html

ekorchmar avatar Dec 12 '22 17:12 ekorchmar