I propose adding two new log_line_prefix escape sequences - %T and %M, doing the same thing as %t and %m, but formatting the value as a number.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных