#include "foreign/fdwapi.h"
#include "mb/pg_wchar.h"
#include "miscadmin.h"
+#include "nodes/queryjumble.h"
#include "parser/parse_relation.h"
#include "rewrite/rewriteHandler.h"
#include "tcop/utility.h"
ScanDirection direction, uint64 count,
bool execute_once)
{
+ /* If enabled, the query ID should be set. */
+ Assert(!IsQueryIdEnabled() || pgstat_get_my_query_id() != 0);
+
if (ExecutorRun_hook)
(*ExecutorRun_hook) (queryDesc, direction, count, execute_once);
else
void
ExecutorFinish(QueryDesc *queryDesc)
{
+ /* If enabled, the query ID should be set. */
+ Assert(!IsQueryIdEnabled() || pgstat_get_my_query_id() != 0);
+
if (ExecutorFinish_hook)
(*ExecutorFinish_hook) (queryDesc);
else
void
ExecutorEnd(QueryDesc *queryDesc)
{
+ /* If enabled, the query ID should be set. */
+ Assert(!IsQueryIdEnabled() || pgstat_get_my_query_id() != 0);
+
if (ExecutorEnd_hook)
(*ExecutorEnd_hook) (queryDesc);
else