postgresql/src/backend/tcop
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
..
cmdtag.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
dest.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
fastpath.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
postgres.c Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
pquery.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
utility.c Re-implement pl/pgsql's expression and assignment parsing. 2021-01-04 11:52:00 -05:00