diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 1b05a31faf..8323bd6a89 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -4089,14 +4089,14 @@ local0.* /var/log/postgresql The %c escape prints a quasi-unique session identifier, - consisting of two hexadecimal numbers separated by a dot. The numbers - are the process start time and the + consisting of two 4-byte hexadecimal numbers separated by a dot. + The numbers are the process start time and the process ID, so %c can also be used as a space saving way of printing those items. For example, to generate the session identifier from pg_stat_activity, use this query: SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' || - to_hex(pid) + regexp_replace('0000' || to_hex(pid), '^0*(.*....)$', '\1') FROM pg_stat_activity;