Please help me to correct sql statement:
CREATE TRIGGER transaction_insert
AFTER INSERT ON transaction
FOR EACH ROW
WHEN (NEW.tr_type = 55)
EXECUTE PROCEDURE pg_notify('check_close', to_char(NEW.n_transaction, 999999));
I need to receive notification when row with tr_type=55 is added.
tr_type is int. n_transaction is int.
Postgresql 8.3.4
Please help!