File: PL_funcs.md

package info (click to toggle)
powa-archivist 4.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,184 kB
  • sloc: sql: 18,289; ansic: 435; makefile: 34; sh: 4
file content (17 lines) | stat: -rw-r--r-- 1,940 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This is a list of all functions and what they are used for:

  * `powa_take_snapshot`: takes a snapshot. It means calling all the **snapshot** functions registered in the **powa_functions** table, then maybe do an **aggregate** and/or a **purge**, if conditions are met (these functions are also registered in powa_functions).
  * `powa_take_statements_snapshot`: takes a snapshot of pg_stat_statements. This is the included **snapshot** function.
  * `powa_statements_purge`: does a purge of collected data from pg_stat_statements. This is the included **purge** function.
  * `powa_statements_aggregate`: does an aggregate (putting individual records into arrays to save space) on collected data from pg_stat_statements. This is the included **aggregate** function.
  * `powa_stats_reset`: cleans-up pg_stat_staments collected data. **FIXME: Should be moved to dedicated functions, and stored in powa_functions**.
  * `powa_kcache_register`: Add the pg_stat_kcache snapshot, aggregate and purge functions to list of powa functions if pg_stat_kcache extension exists.
  * `powa_kcache_unregister`: Remove the pg_stat_kcache snapshot, aggregate and purge functions from list of powa functions.
  * `powa_kcache_snapshot`: Take a snapshot of pg_stat_kcache.
  * `powa_kcache_aggregate`: Does an aggregate on collected data from pg_stat_kcache.
  * `powa_kcache_purge`: Does a purge of collected data from pg_stat_kcache.
  * `powa_qualstats_register`: Add the pg_qualstats snapshot, aggregate and purge functions to list of powa functions if pg_qualstats extension exists.
  * `powa_qualstats_unregister`: Remove the pg_qualstats snapshot, aggregate and purge pg_qualstats functions from list of powa functions.
  * `powa_qualstats_snapshot`: Take a snapshot of pg_qualstats.
  * `powa_qualstats_aggregate`: Does an aggregate on collected data from pg_qualstats.
  * `powa_qualstats_purge`: Does a purge of collected data from pg_qualstats.