PG-158: Segmentation fault while using pgbench with clients > 1.

This commit is contained in:
Ibrar Ahmed
2021-01-08 18:12:04 +00:00
parent 013fcb8c6c
commit 44bab626f1

View File

@@ -2367,8 +2367,8 @@ static PlannedStmt *pgss_planner_hook(Query *parse, int opt, ParamListInfo param
memset(&walusage, 0, sizeof(WalUsage));
WalUsageAccumDiff(&walusage, &pgWalUsage, &walusage_start);
if (PGSM_ENABLED == 1)
pgss_store(query_string, /* query text */
parse->queryId, /* query id */
pgss_store(parse->queryId, /* query id */
query_string, /* query text */
0, /* error elevel */
0, /* error sqlcode */
NULL, /* error message */