Hello i have a problem with a Trigger
i have 2 tables:
- t_mandant
- t_user_has_mandant
when i delete a row in t_user_has_mandant i call a trigger beforeDeleteUserMandant() but i need a possibility to ignore the trigger call when i delete a mandant from t_mandant
because t_user_has_mandant has a foreign key on t_mandant which is on delete cascade.
im using postgres 8.4
t_user_has_mandant
if the delete was caused byCASCADE
FK fromt_mandant
? – Igor Romanchenko May 21 '13 at 13:31