We already have one; it's called update_process_title.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных