docs: Improve log_line_prefix session_id query

This commit is contained in:
Bruce Momjian 2013-05-04 13:23:04 -04:00
parent f87f214b7c
commit 083d8fa79d
1 changed files with 1 additions and 1 deletions

View File

@ -4096,7 +4096,7 @@ local0.* /var/log/postgresql
identifier from <literal>pg_stat_activity</>, use this query:
<programlisting>
SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' ||
regexp_replace('0000' || to_hex(pid), '^0*(.*....)$', '\1')
regexp_replace('0000' || '0133e3', '^0*(.{4,})$', '\1')
FROM pg_stat_activity;
</programlisting>