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

Joel Jacobson
This commit is contained in:
Robert Haas 2015-06-04 17:57:39 -04:00
parent 1c645da8eb
commit 99cfd5e136
1 changed files with 1 additions and 1 deletions

View File

@ -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>