Very slow DELETE in PostgreSQL, workaround?Are there indexes on the foreign key columns of the child tables? I haven't tested it with postgresql, but with some databases (cough oracle cough) that can make a huge difference.