I suggest adding a new state to pg_stat_activity.state for backends that are waiting for their synchronous commit to be flushed on the remote host. I chose 'waiting for synchronous replication' for now.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных