-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
0e06a4c
commit 9e76f6f
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters