mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
PG-449: Despite pgsm_extract_comments='no', comments are still visible. (#271)
Check for GUC (pgsm_extract_comments) was missing.
This commit is contained in:
@@ -1511,6 +1511,8 @@ pgss_store(uint64 queryid,
|
||||
|
||||
planid = plan_info ? plan_info->planid : 0;
|
||||
|
||||
/* Extract comments if enabled. */
|
||||
if (PGSM_EXTRACT_COMMENTS)
|
||||
extract_query_comments(query, comments, sizeof(comments));
|
||||
|
||||
prev_bucket_id = pg_atomic_read_u64(&pgss->current_wbucket);
|
||||
|
||||
Reference in New Issue
Block a user