|From:||Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>|
|Subject:||Add session statistics to pg_stat_database|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
Here is a patch that adds the following to pg_stat_database:
- number of connections
- number of sessions that were not disconnected regularly
- total time spent in database sessions
- total time spent executing queries
- total idle in transaction time
This is useful to check if connection pooling is working.
It also helps to estimate the size of the connection pool
required to keep the database busy, which depends on the
percentage of the transaction time that is spent idling.
|Next Message||wenjing zeng||2020-07-08 11:24:52||Re: [bug] Table not have typarray when created by single user mode|
|Previous Message||Alexander Korotkov||2020-07-08 11:00:31||Re: Quick doc patch|