Add support for conditions on triggers in postgres