> The code you posted is a clear case of doing things wrong
> deliberately.
Yes It's just an example. My real code is more complex of course.
> In order to prevent this error, you would need to
> rewrite large parts of Postgres's code which checks referential
> integrity, and there would still be things that deliberately wrong
> DDL, triggers, rules, etc. could do.
Sad to hear it. Anyway thanx for explanation.
--
Regards,
Sergey Konoplev