PostgresCounters
PostgreSQL's counters and settings around a raw run's windows, on connections from connect.
Functions
The WAL written between before's and after's positions (WAL_POSITION), per record type and the table it touched (an index's or TOAST table's own, its table's): wal <type> <table> records, the type <resource manager>/<record> and the table - for a record of none (a commit), and each table's record bytes, full-page images among them (wal <table> bytes). Read with pg_walinspect; empty when the extension is not there, a checkpoint recycled the segments, or the read took longer than RECORDS_TIMEOUT.
Watches how far back open transactions hold the store's horizon while a window runs, a diagnostic of the HOT share (a dead row version an open snapshot may still see is not pruned, so its page's space is not freed for the next update): every SAMPLE_MILLIS, the oldest backend_xmin's age in transactions and the longest-open transaction holding one, in this database and besides the watcher's own. The returned stop gives their means and maxima over the window (XMIN_METRICS).