3 ms·
A properly written trigger shouldn't throw away data silently. It should raise an exception, which indeed would cause the query to fail, and roll back the whol
by fredrikfornwall 8y ago
A properly written trigger shouldn't throw away data silently.
It should raise an exception, which indeed would cause the query to fail, and roll back the whole transaction (so no side effect is committed at all).
https://www.postgresql.org/docs/current/static/plpgsql-errors-and-messages.html https://www.postgresql.org/docs/current/static/plpgsql-error...