Forum OpenACS Development: Re: Problem when i tried to delete a user from db (nuke user)

Collapse
Posted by russ m on
Surely the correct way to fix this is for the constraints to be defined with "on delete cascade" so that any referencing objects are automatically deleted when the referenced object is deleted. I'd assume the data model wasn't written this way because on delete cascade wasn't supported in postgres when OACS4 was being written, but it's been available since at least PG 7.2.