The pg_stat_monitor is based on PostgreSQL-11's pg_stat_statement. To keep track of the changes, this is the base code of PostgreSQL's pg_stat_statement. (commit = d898edf4f233a3ffe6a0da64179fc268a1d46200).