How to update table with ON DELETE CASCADE without dropping and recreating

Posted by pukipuki on Stack Overflow See other posts from Stack Overflow or by pukipuki
Published on 2010-03-09T20:46:19Z Indexed on 2010/03/11 17:19 UTC
Read the original article Hit count: 256

Filed under:

During development of a PostgreSQL database, I made foreign keys in every table. The problem is that I forgot to select ON DELETE CASCADE option.

I need to set that options on all tables. It seems I can only drop and recreate every constraint manually.

Does anybody know any shortcuts?

© Stack Overflow or respective owner

Related posts about postgresql