I'm starting a new project in postgreSQL (lastest) having worked with MySQL 5.5 for a while.
In the past I've made heavy use of blackhole
table to simplify my application code.
It allows me to do one insert in application code:
INSERT INTO blackhole1 (val1, val2, val3, val4 ...
CREATE TRIGGER ai_blackhole1_each AFTER INSERT ....
BEGIN
INSERT INTO table1 (....
INSERT INTO table2 (....
INSERT INTO log (.....
And have a trigger in the blackhole table insert the values into different tables.
What do I use in postgreSQL to replace this functionality?
I know I can use a stored procedure, but that means that I cannot connect data-aware controls to a
blackhole-table. So I would love the stick as close to the MySQL original as possible.