Oleg Tselebrovskiy
Oleg Tselebrovskiy
Following the discussion in #94, I decided to add more columns to pg_wait_sampling_current/history/profile I've added most of the columns from request in #94, but some fields from "pg_stat_activity" (= `localBackendStatusTable`)...
It had a serious bug - profile_period wasn't used in code at all Also, sampling frequency was a bit off - in 10 seconds of pg_sleep we lost about 1%...
Add role_id, database_id, leader_pid and is_regular_backend columns Also add a GUC to handle all "sampling dimensions"