PG-449: Despite pgsm_extract_comments='no', comments are still visible. (#271)
Check for GUC (pgsm_extract_comments) was missing.pull/269/head^2
parent
14c390d201
commit
926eade1eb
|
@ -1511,7 +1511,9 @@ pgss_store(uint64 queryid,
|
|||
|
||||
planid = plan_info ? plan_info->planid : 0;
|
||||
|
||||
extract_query_comments(query, comments, sizeof(comments));
|
||||
/* 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);
|
||||
bucketid = get_next_wbucket(pgss);
|
||||
|
|
Loading…
Reference in New Issue