We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ac915 commit 344efe8Copy full SHA for 344efe8
src/backend/executor/execMain.c
@@ -238,7 +238,7 @@ standard_ExecutorStart(QueryDesc *queryDesc, int eflags)
238
{
239
PG_TRY();
240
241
- switch(*gp_resmanager_memory_policy)
+ switch (*gp_resmanager_memory_policy)
242
243
case RESMANAGER_MEMORY_POLICY_AUTO:
244
PolicyAutoAssignOperatorMemoryKB(queryDesc->plannedstmt,
@@ -255,7 +255,10 @@ standard_ExecutorStart(QueryDesc *queryDesc, int eflags)
255
}
256
PG_CATCH();
257
258
- mppExecutorCleanup(queryDesc);
+ /* GPDB hook for collecting query info */
259
+ if (query_info_collect_hook)
260
+ (*query_info_collect_hook)(QueryCancelCleanup ? METRICS_QUERY_CANCELED : METRICS_QUERY_ERROR, queryDesc);
261
+
262
PG_RE_THROW();
263
264
PG_END_TRY();
0 commit comments