postgresql/src
Magnus Hagander 960869da08 Add pg_stat_database counters for sessions and session time
This add counters for number of sessions, the different kind of session
termination types, and timers for how much time is spent in active vs
idle in a database to pg_stat_database.

Internally this also renames the parameter "force" to disconnect. This
was the only use-case for the parameter before, so repurposing it to
this mroe narrow usecase makes things cleaner than inventing something
new.

Author: Laurenz Albe
Reviewed-By: Magnus Hagander, Soumyadeep Chakraborty, Masahiro Ikeda
Discussion: https://postgr.es/m/b07e1f9953701b90c66ed368656f2aef40cac4fb.camel@cybertec.at
2021-01-17 13:52:31 +01:00
..
backend Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
bin psql \dX: list extended statistics objects 2021-01-17 00:16:45 +01:00
common Rework refactoring of hex and encoding routines 2021-01-14 11:13:24 +09:00
fe_utils Update copyright for 2021 2021-01-02 13:06:25 -05:00
include Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
interfaces Try next host after a "cannot connect now" failure. 2021-01-11 14:12:31 -05:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Fix plpgsql tests for debug_invalidate_system_caches_always. 2021-01-08 18:12:07 -05:00
port Move our p{read,write}v replacements into their own files. 2021-01-14 11:16:59 +13:00
template Improve our heuristic for selecting PG_SYSROOT on macOS. 2021-01-15 11:28:51 -05:00
test Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
timezone Update copyright for 2021 2021-01-02 13:06:25 -05:00
tools Rework refactoring of hex and encoding routines 2021-01-14 11:13:24 +09:00
tutorial Doc, more or less: uncomment tutorial example that was fixed long ago. 2021-01-13 16:00:03 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Split Makefile symbol CFLAGS_VECTOR into two symbols. 2020-09-06 21:28:16 -04:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00