Create an updated_at timestamp column that is automatically updated whenever row values are changed in a postgresql database.
- Modifying a column when a row is changed requires a
BEFORE UPDATETRIGGERon row updates. - A
triggercancallaprocedure - A function can create a
triggerprogramatically.