Hacker News new | ask | show | jobs
by kcolford 2215 days ago
You gotta redo the foreign key constraints in the same transaction that you rebuild the table
1 comments

Oh so specify the FKs from table B to A (if we were dropping and rebuilding A) in a begin/end transaction block?

Thank you