Add query info hook for CTAS query type.
GPCC want to hook query like
create table ... as select ...
create materialized view ... as select ...
#include "cdb/cdbvars.h"
#include "cdb/memquota.h"
#include "pgstat.h"
+#include "utils/metrics_utils.h"
typedef struct
{
@@ -410,6 +411,10 @@ ExecCreateTableAs(CreateTableAsStmt *stmt, const char *queryString,
dest, params, queryEnv, 0);
}
+ /* GPDB hook for collecting query info */
+ if (query_info_collect_hook)
+ (*query_info_collect_hook)(METRICS_QUERY_SUBMIT, queryDesc);
+
if (into->skipData && !is_matview)
{
/*
