mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
doc: Session identifiers truncate, not round, the backend start time.
Joel Jacobson
This commit is contained in:
parent
1c645da8eb
commit
99cfd5e136
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user