Skip to content

Commit 99cfd5e

Browse files
committed
doc: Session identifiers truncate, not round, the backend start time.
Joel Jacobson
1 parent 1c645da commit 99cfd5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/config.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4707,7 +4707,7 @@ local0.* /var/log/postgresql
47074707
of printing those items. For example, to generate the session
47084708
identifier from <literal>pg_stat_activity</>, use this query:
47094709
<programlisting>
4710-
SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' ||
4710+
SELECT to_hex(trunc(EXTRACT(EPOCH FROM backend_start))::integer) || '.' ||
47114711
to_hex(pid)
47124712
FROM pg_stat_activity;
47134713
</programlisting>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy