Yes, I would use a trigger for this. <snip>
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных