I intentionally used elog() because I thought single user mode is not user-facing. But it is OK for me to use ereport() instead.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных