Commit Graph

2 Commits (c3d167e4524d37d92fe4dcc73ccdebf8bd9885ae)

Author SHA1 Message Date
Diego Fronza 9e76f6f961 PG-260: Fix regression tests.
The regression tests required some adjustmentes as they were based on a
wrong behavior in pg_stat_monitor that was fixed in the last commits.

The problem was that pg_stat_monitor_reset() was not properly clearing
the query buffers, as such, some garbage queries were residing in the
buffers after calling pg_stat_monitor_reset().

One example of a problem, a query such as "SELECT 1 AS num" and the
same query with comments such as:
SELECT $1 AS num /* { "application", psql_app, "real_ip", 192.168.1.3)
*/
Are evaluated to the same query ID, if a test issue the first query, call
pg_stat_monitor_reset() to clear query buffer, then issue the second
query with comments, the result in pg_stat_monitor view would still contain
the first query without comments, this was leading to tests expecting
the wrong output, which is now fixed.
2021-10-14 10:39:25 -03:00
Ibrar Ahmed 334389c76e PG-188: Added a new column to monitor the query state.
Added missing test case files.
2021-03-21 00:17:17 +05:00