6 ms·
I don't follow how you would do that in a stored procedure outside of a trigger.
by candiddevmike 1y ago
I don't follow how you would do that in a stored procedure outside of a trigger.
- const_cast 1y agoI think instead of performing an INSERT you call a stored proc that does the insert and some extra stuff.
- shivasaxena 1y agoYes, we already have all of our business logic in postgres functions(create_order, create_partial_payment etc). Doing the extra work in stored procedures is noticeably faster than relying on triggers.