Is it possible to set the database (PostgreSQL v 14) that for each insert or update on the text fields execute a trim?
This action would save me from creating 2 triggers for each table (trigger before insert and before update) with trim control on all text fields.