From dfd41519cf82e1cebd1026c15551502824a50fe2 Mon Sep 17 00:00:00 2001 From: Hamid Akhtar Date: Fri, 20 Jan 2023 19:34:02 +0500 Subject: [PATCH] PG-588: Some queries are not being normalised. There is no specific test case where I can either reproduce or validate the fix. Though, one of the suspects is this condition in pgss_store. Therefore removed, and it requires verification. --- pg_stat_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index 49dc08a..134a999 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -1588,7 +1588,7 @@ pgss_store(uint64 queryid, * in the interval where we don't hold the lock below. That case is * handled by entry_alloc. */ - if (jstate && jstate->clocations_count > 0) + if (jstate) { norm_query_len = query_len;