pg_stat_monitor/regression/sql
Hamid Akhtar de66ef0fce PG-588: Some queries are not being normalised.
This bug uncovered serious issues with how the data was being stored by PSGM.
So it require a complete redesign.

pg_stat_monitor now stores the data locally within the backend process's local
memory. The data is only stored when the query completes. This reduces the
number of lock acquisitions that were previously needed during various stages
of the execution. Also, this avoids data loss in case the current bucket
changes during execution. Also, the unavailability of jumble state during later
stages of executions was causing pg_stat_monitor to save non-normalized query.
This was a major problem as well.

pg_stat_monitor specific memory context is implemented. It is used for saving
data locally. The context memory callback helps us clear the locally saved data
so that we do not store it multiple times in the shared hash.

As part of this major rewrite, pgss reference in function and variable names
is changed to pgsm. Memory footprint for the entries is reduced, data types
are corrected where needed, and we've removed unused variables, functions and
macros.

This patch was mutually created by:
Co-authored-by: Hamid Akhtar <hamid.akhtar@percona.com>
Co-authored-by: Muhammad Usama <muhammad.usama@percona.com>
2023-02-22 19:31:52 +05:00
..
application_name.sql PG-186: Add support to monitor query execution plan. 2021-03-12 18:55:12 +00:00
application_name_unique.sql PG-563: Update TAP testcases and output due to changes by DEV. 2022-12-27 18:14:32 +05:00
basic.sql PG-186: Add support to monitor query execution plan. 2021-03-17 18:56:39 +05:00
cmd_type.sql PG-588: Some queries are not being normalised. 2023-02-22 19:31:52 +05:00
counters.sql PG-570: Fix counters test case. 2023-01-03 18:50:53 +05:00
database.sql PG-588: Some queries are not being normalised. 2023-02-22 19:31:52 +05:00
error.sql PG-221: Use alternate of GetUserID function in error hook. 2021-08-31 14:55:53 +00:00
error_insert.sql PG-563: Update TAP testcases and output due to changes by DEV. 2022-12-27 18:14:32 +05:00
functions.sql PG-588: Some queries are not being normalised. 2023-02-22 19:31:52 +05:00
guc.sql PG-563: Update TAP testcases and output due to changes by DEV. 2022-12-27 18:14:32 +05:00
histogram.sql PG-343: Enable TAP testing; PG-292: Automate the QA; PG-338: Calls count.; PG-331: Default values in PMM. 2022-03-22 01:36:47 +05:00
pgsm_query_id.sql PG-588: Some queries are not being normalised. 2023-02-22 19:31:52 +05:00
relations.sql PG-563: Update TAP testcases and output due to changes by DEV. 2022-12-27 18:14:32 +05:00
rows.sql PG-588: Some queries are not being normalised. 2023-02-22 19:31:52 +05:00
state.sql PG-188: Added a new column to monitor the query state. 2021-03-21 00:17:17 +05:00
tags.sql PG-451: Fix regression failures in main branch. 2022-07-03 04:26:42 +05:00
top_query.sql PG-563: Update TAP testcases and output due to changes by DEV. 2022-12-27 18:14:32 +05:00
user.sql PG-588: Some queries are not being normalised. 2023-02-22 19:31:52 +05:00
version.sql PG-186: Add support to monitor query execution plan. 2021-03-12 18:55:12 +00:00