Janning Vygen <vygen@xxxxxx> writes: > But why doesn't it work if i make alle FK deferrable initially deferred? You didn't do it right --- I don't believe the code actually looks at pg_constraint, it looks at pg_trigger. And if you are going to hack pg_trigger directly, be careful to only change the check-trigger rows not the action-trigger rows. I forget which is which but Stephen probably remembers. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings