Patch attached. Some kinds of emit log hooks might find it useful to also compute the log_line_prefix. Regards, Jeff Davis
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных