Commit 99cfd5e1 authored by Robert Haas's avatar Robert Haas

doc: Session identifiers truncate, not round, the backend start time.

Joel Jacobson
parent 1c645da8
......@@ -4707,7 +4707,7 @@ local0.* /var/log/postgresql
of printing those items. For example, to generate the session
identifier from <literal>pg_stat_activity</>, use this query:
<programlisting>
SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' ||
SELECT to_hex(trunc(EXTRACT(EPOCH FROM backend_start))::integer) || '.' ||
to_hex(pid)
FROM pg_stat_activity;
</programlisting>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment