I have a trigger function that I am running BEFORE INSERT on table1. In this function I do the following:
INSERT INTO table2 VALUES(x, y, z);
INSERT INTO table3 VALUES(x, a);
For some reason, these INSERT statements do not run. I know that the function is being called.
UPDATE:
More information, my trigger looks like this:
CREATE TRIGGER update_db
BEFORE INSERT ON table1
FOR EACH ROW
EXECUTE PROCEDURE update_all_db();
My procedure function doesn't do much. All I'm trying to do are a few statements as above.
Thank you in advance.
update_all_db()