2008-11-19 10:59:28 +08:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* auto_explain.c
|
|
|
|
*
|
|
|
|
*
|
2017-01-04 02:48:53 +08:00
|
|
|
* Copyright (c) 2008-2017, PostgreSQL Global Development Group
|
2008-11-19 10:59:28 +08:00
|
|
|
*
|
|
|
|
* IDENTIFICATION
|
2010-09-21 04:08:53 +08:00
|
|
|
* contrib/auto_explain/auto_explain.c
|
2008-11-19 10:59:28 +08:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#include "postgres.h"
|
|
|
|
|
2012-08-29 11:43:09 +08:00
|
|
|
#include <limits.h>
|
|
|
|
|
2008-11-19 10:59:28 +08:00
|
|
|
#include "commands/explain.h"
|
|
|
|
#include "executor/instrument.h"
|
2011-09-04 13:13:16 +08:00
|
|
|
#include "utils/guc.h"
|
2008-11-19 10:59:28 +08:00
|
|
|
|
|
|
|
PG_MODULE_MAGIC;
|
|
|
|
|
|
|
|
/* GUC variables */
|
2009-06-11 22:49:15 +08:00
|
|
|
static int auto_explain_log_min_duration = -1; /* msec or -1 */
|
2009-01-02 09:16:02 +08:00
|
|
|
static bool auto_explain_log_analyze = false;
|
|
|
|
static bool auto_explain_log_verbose = false;
|
2009-12-15 12:57:48 +08:00
|
|
|
static bool auto_explain_log_buffers = false;
|
2014-03-05 02:31:18 +08:00
|
|
|
static bool auto_explain_log_triggers = false;
|
2014-09-20 01:18:56 +08:00
|
|
|
static bool auto_explain_log_timing = true;
|
2009-08-10 13:46:50 +08:00
|
|
|
static int auto_explain_log_format = EXPLAIN_FORMAT_TEXT;
|
2009-01-02 09:16:02 +08:00
|
|
|
static bool auto_explain_log_nested_statements = false;
|
2016-03-13 20:18:03 +08:00
|
|
|
static double auto_explain_sample_rate = 1;
|
2008-11-19 10:59:28 +08:00
|
|
|
|
2009-08-10 13:46:50 +08:00
|
|
|
static const struct config_enum_entry format_options[] = {
|
2010-02-26 10:01:40 +08:00
|
|
|
{"text", EXPLAIN_FORMAT_TEXT, false},
|
|
|
|
{"xml", EXPLAIN_FORMAT_XML, false},
|
|
|
|
{"json", EXPLAIN_FORMAT_JSON, false},
|
|
|
|
{"yaml", EXPLAIN_FORMAT_YAML, false},
|
|
|
|
{NULL, 0, false}
|
2009-08-10 13:46:50 +08:00
|
|
|
};
|
|
|
|
|
2008-11-19 10:59:28 +08:00
|
|
|
/* Current nesting depth of ExecutorRun calls */
|
|
|
|
static int nesting_level = 0;
|
|
|
|
|
|
|
|
/* Saved hook values in case of unload */
|
2009-06-11 22:49:15 +08:00
|
|
|
static ExecutorStart_hook_type prev_ExecutorStart = NULL;
|
|
|
|
static ExecutorRun_hook_type prev_ExecutorRun = NULL;
|
2011-02-28 02:43:29 +08:00
|
|
|
static ExecutorFinish_hook_type prev_ExecutorFinish = NULL;
|
2009-06-11 22:49:15 +08:00
|
|
|
static ExecutorEnd_hook_type prev_ExecutorEnd = NULL;
|
2008-11-19 10:59:28 +08:00
|
|
|
|
2016-03-11 22:08:34 +08:00
|
|
|
/* Is the current query sampled, per backend */
|
|
|
|
static bool current_query_sampled = true;
|
|
|
|
|
2008-11-19 10:59:28 +08:00
|
|
|
#define auto_explain_enabled() \
|
2009-01-02 09:16:02 +08:00
|
|
|
(auto_explain_log_min_duration >= 0 && \
|
|
|
|
(nesting_level == 0 || auto_explain_log_nested_statements))
|
2008-11-19 10:59:28 +08:00
|
|
|
|
2009-06-11 22:49:15 +08:00
|
|
|
void _PG_init(void);
|
|
|
|
void _PG_fini(void);
|
2008-11-19 10:59:28 +08:00
|
|
|
|
|
|
|
static void explain_ExecutorStart(QueryDesc *queryDesc, int eflags);
|
|
|
|
static void explain_ExecutorRun(QueryDesc *queryDesc,
|
2009-06-11 22:49:15 +08:00
|
|
|
ScanDirection direction,
|
Widen query numbers-of-tuples-processed counters to uint64.
This patch widens SPI_processed, EState's es_processed field, PortalData's
portalPos field, FuncCallContext's call_cntr and max_calls fields,
ExecutorRun's count argument, PortalRunFetch's result, and the max number
of rows in a SPITupleTable to uint64, and deals with (I hope) all the
ensuing fallout. Some of these values were declared uint32 before, and
others "long".
I also removed PortalData's posOverflow field, since that logic seems
pretty useless given that portalPos is now always 64 bits.
The user-visible results are that command tags for SELECT etc will
correctly report tuple counts larger than 4G, as will plpgsql's GET
GET DIAGNOSTICS ... ROW_COUNT command. Queries processing more tuples
than that are still not exactly the norm, but they're becoming more
common.
Most values associated with FETCH/MOVE distances, such as PortalRun's count
argument and the count argument of most SPI functions that have one, remain
declared as "long". It's not clear whether it would be worth promoting
those to int64; but it would definitely be a large dollop of additional
API churn on top of this, and it would only help 32-bit platforms which
seem relatively less likely to see any benefit.
Andreas Scherbaum, reviewed by Christian Ullrich, additional hacking by me
2016-03-13 05:05:10 +08:00
|
|
|
uint64 count);
|
2011-02-28 02:43:29 +08:00
|
|
|
static void explain_ExecutorFinish(QueryDesc *queryDesc);
|
2008-11-19 10:59:28 +08:00
|
|
|
static void explain_ExecutorEnd(QueryDesc *queryDesc);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Module load callback
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
_PG_init(void)
|
|
|
|
{
|
|
|
|
/* Define custom GUC variables. */
|
2009-01-02 09:16:02 +08:00
|
|
|
DefineCustomIntVariable("auto_explain.log_min_duration",
|
2009-06-11 22:49:15 +08:00
|
|
|
"Sets the minimum execution time above which plans will be logged.",
|
|
|
|
"Zero prints all plans. -1 turns this feature off.",
|
2009-01-02 09:16:02 +08:00
|
|
|
&auto_explain_log_min_duration,
|
2008-11-19 10:59:28 +08:00
|
|
|
-1,
|
|
|
|
-1, INT_MAX / 1000,
|
|
|
|
PGC_SUSET,
|
|
|
|
GUC_UNIT_MS,
|
|
|
|
NULL,
|
2011-04-07 12:11:01 +08:00
|
|
|
NULL,
|
2008-11-19 10:59:28 +08:00
|
|
|
NULL);
|
|
|
|
|
2009-01-02 09:16:02 +08:00
|
|
|
DefineCustomBoolVariable("auto_explain.log_analyze",
|
2008-11-19 10:59:28 +08:00
|
|
|
"Use EXPLAIN ANALYZE for plan logging.",
|
|
|
|
NULL,
|
2009-01-02 09:16:02 +08:00
|
|
|
&auto_explain_log_analyze,
|
2008-11-19 10:59:28 +08:00
|
|
|
false,
|
|
|
|
PGC_SUSET,
|
|
|
|
0,
|
|
|
|
NULL,
|
2011-04-07 12:11:01 +08:00
|
|
|
NULL,
|
2008-11-19 10:59:28 +08:00
|
|
|
NULL);
|
|
|
|
|
2009-01-02 09:16:02 +08:00
|
|
|
DefineCustomBoolVariable("auto_explain.log_verbose",
|
2008-11-19 10:59:28 +08:00
|
|
|
"Use EXPLAIN VERBOSE for plan logging.",
|
|
|
|
NULL,
|
2009-01-02 09:16:02 +08:00
|
|
|
&auto_explain_log_verbose,
|
2008-11-19 10:59:28 +08:00
|
|
|
false,
|
|
|
|
PGC_SUSET,
|
|
|
|
0,
|
|
|
|
NULL,
|
2011-04-07 12:11:01 +08:00
|
|
|
NULL,
|
2008-11-19 10:59:28 +08:00
|
|
|
NULL);
|
|
|
|
|
2009-12-15 12:57:48 +08:00
|
|
|
DefineCustomBoolVariable("auto_explain.log_buffers",
|
|
|
|
"Log buffers usage.",
|
|
|
|
NULL,
|
|
|
|
&auto_explain_log_buffers,
|
|
|
|
false,
|
|
|
|
PGC_SUSET,
|
|
|
|
0,
|
|
|
|
NULL,
|
2011-04-07 12:11:01 +08:00
|
|
|
NULL,
|
2009-12-15 12:57:48 +08:00
|
|
|
NULL);
|
|
|
|
|
2014-03-05 02:31:18 +08:00
|
|
|
DefineCustomBoolVariable("auto_explain.log_triggers",
|
|
|
|
"Include trigger statistics in plans.",
|
2014-05-07 00:12:18 +08:00
|
|
|
"This has no effect unless log_analyze is also set.",
|
2014-03-05 02:31:18 +08:00
|
|
|
&auto_explain_log_triggers,
|
|
|
|
false,
|
|
|
|
PGC_SUSET,
|
|
|
|
0,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
|
|
|
|
2009-08-10 13:46:50 +08:00
|
|
|
DefineCustomEnumVariable("auto_explain.log_format",
|
|
|
|
"EXPLAIN format to be used for plan logging.",
|
|
|
|
NULL,
|
|
|
|
&auto_explain_log_format,
|
|
|
|
EXPLAIN_FORMAT_TEXT,
|
|
|
|
format_options,
|
|
|
|
PGC_SUSET,
|
|
|
|
0,
|
|
|
|
NULL,
|
2011-04-07 12:11:01 +08:00
|
|
|
NULL,
|
2009-08-10 13:46:50 +08:00
|
|
|
NULL);
|
|
|
|
|
2009-01-02 09:16:02 +08:00
|
|
|
DefineCustomBoolVariable("auto_explain.log_nested_statements",
|
2008-11-19 10:59:28 +08:00
|
|
|
"Log nested statements.",
|
|
|
|
NULL,
|
2009-01-02 09:16:02 +08:00
|
|
|
&auto_explain_log_nested_statements,
|
2008-11-19 10:59:28 +08:00
|
|
|
false,
|
|
|
|
PGC_SUSET,
|
|
|
|
0,
|
|
|
|
NULL,
|
2011-04-07 12:11:01 +08:00
|
|
|
NULL,
|
2008-11-19 10:59:28 +08:00
|
|
|
NULL);
|
|
|
|
|
2012-02-08 00:23:04 +08:00
|
|
|
DefineCustomBoolVariable("auto_explain.log_timing",
|
|
|
|
"Collect timing data, not just row counts.",
|
|
|
|
NULL,
|
|
|
|
&auto_explain_log_timing,
|
|
|
|
true,
|
|
|
|
PGC_SUSET,
|
|
|
|
0,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
|
|
|
|
2016-03-13 20:18:03 +08:00
|
|
|
DefineCustomRealVariable("auto_explain.sample_rate",
|
2016-03-11 22:08:34 +08:00
|
|
|
"Fraction of queries to process.",
|
2016-06-10 06:02:36 +08:00
|
|
|
NULL,
|
|
|
|
&auto_explain_sample_rate,
|
|
|
|
1.0,
|
|
|
|
0.0,
|
|
|
|
1.0,
|
|
|
|
PGC_SUSET,
|
|
|
|
0,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
2016-03-11 22:08:34 +08:00
|
|
|
|
2009-01-05 21:35:38 +08:00
|
|
|
EmitWarningsOnPlaceholders("auto_explain");
|
|
|
|
|
2008-11-19 10:59:28 +08:00
|
|
|
/* Install hooks. */
|
|
|
|
prev_ExecutorStart = ExecutorStart_hook;
|
|
|
|
ExecutorStart_hook = explain_ExecutorStart;
|
|
|
|
prev_ExecutorRun = ExecutorRun_hook;
|
|
|
|
ExecutorRun_hook = explain_ExecutorRun;
|
2011-02-28 02:43:29 +08:00
|
|
|
prev_ExecutorFinish = ExecutorFinish_hook;
|
|
|
|
ExecutorFinish_hook = explain_ExecutorFinish;
|
2008-11-19 10:59:28 +08:00
|
|
|
prev_ExecutorEnd = ExecutorEnd_hook;
|
|
|
|
ExecutorEnd_hook = explain_ExecutorEnd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Module unload callback
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
_PG_fini(void)
|
|
|
|
{
|
|
|
|
/* Uninstall hooks. */
|
|
|
|
ExecutorStart_hook = prev_ExecutorStart;
|
|
|
|
ExecutorRun_hook = prev_ExecutorRun;
|
2011-02-28 02:43:29 +08:00
|
|
|
ExecutorFinish_hook = prev_ExecutorFinish;
|
2008-11-19 10:59:28 +08:00
|
|
|
ExecutorEnd_hook = prev_ExecutorEnd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ExecutorStart hook: start up logging if needed
|
|
|
|
*/
|
2010-01-07 02:07:19 +08:00
|
|
|
static void
|
2008-11-19 10:59:28 +08:00
|
|
|
explain_ExecutorStart(QueryDesc *queryDesc, int eflags)
|
|
|
|
{
|
2016-03-11 22:08:34 +08:00
|
|
|
/*
|
2016-06-10 06:02:36 +08:00
|
|
|
* For rate sampling, randomly choose top-level statement. Either all
|
|
|
|
* nested statements will be explained or none will.
|
2016-03-11 22:08:34 +08:00
|
|
|
*/
|
|
|
|
if (auto_explain_log_min_duration >= 0 && nesting_level == 0)
|
2016-03-13 20:18:03 +08:00
|
|
|
current_query_sampled = (random() < auto_explain_sample_rate *
|
2016-06-10 06:02:36 +08:00
|
|
|
MAX_RANDOM_VALUE);
|
2016-03-11 22:08:34 +08:00
|
|
|
|
|
|
|
if (auto_explain_enabled() && current_query_sampled)
|
2008-11-19 10:59:28 +08:00
|
|
|
{
|
|
|
|
/* Enable per-node instrumentation iff log_analyze is required. */
|
2009-01-02 09:16:02 +08:00
|
|
|
if (auto_explain_log_analyze && (eflags & EXEC_FLAG_EXPLAIN_ONLY) == 0)
|
2009-12-15 12:57:48 +08:00
|
|
|
{
|
2012-02-08 00:23:04 +08:00
|
|
|
if (auto_explain_log_timing)
|
|
|
|
queryDesc->instrument_options |= INSTRUMENT_TIMER;
|
|
|
|
else
|
|
|
|
queryDesc->instrument_options |= INSTRUMENT_ROWS;
|
2009-12-15 12:57:48 +08:00
|
|
|
if (auto_explain_log_buffers)
|
|
|
|
queryDesc->instrument_options |= INSTRUMENT_BUFFERS;
|
|
|
|
}
|
2008-11-19 10:59:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (prev_ExecutorStart)
|
|
|
|
prev_ExecutorStart(queryDesc, eflags);
|
|
|
|
else
|
|
|
|
standard_ExecutorStart(queryDesc, eflags);
|
|
|
|
|
2016-03-11 22:08:34 +08:00
|
|
|
if (auto_explain_enabled() && current_query_sampled)
|
2008-11-19 10:59:28 +08:00
|
|
|
{
|
|
|
|
/*
|
2009-06-11 22:49:15 +08:00
|
|
|
* Set up to track total elapsed time in ExecutorRun. Make sure the
|
|
|
|
* space is allocated in the per-query context so it will go away at
|
|
|
|
* ExecutorEnd.
|
2008-11-19 10:59:28 +08:00
|
|
|
*/
|
|
|
|
if (queryDesc->totaltime == NULL)
|
|
|
|
{
|
|
|
|
MemoryContext oldcxt;
|
|
|
|
|
|
|
|
oldcxt = MemoryContextSwitchTo(queryDesc->estate->es_query_cxt);
|
2009-12-15 12:57:48 +08:00
|
|
|
queryDesc->totaltime = InstrAlloc(1, INSTRUMENT_ALL);
|
2008-11-19 10:59:28 +08:00
|
|
|
MemoryContextSwitchTo(oldcxt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ExecutorRun hook: all we need do is track nesting depth
|
|
|
|
*/
|
2010-01-07 02:07:19 +08:00
|
|
|
static void
|
Widen query numbers-of-tuples-processed counters to uint64.
This patch widens SPI_processed, EState's es_processed field, PortalData's
portalPos field, FuncCallContext's call_cntr and max_calls fields,
ExecutorRun's count argument, PortalRunFetch's result, and the max number
of rows in a SPITupleTable to uint64, and deals with (I hope) all the
ensuing fallout. Some of these values were declared uint32 before, and
others "long".
I also removed PortalData's posOverflow field, since that logic seems
pretty useless given that portalPos is now always 64 bits.
The user-visible results are that command tags for SELECT etc will
correctly report tuple counts larger than 4G, as will plpgsql's GET
GET DIAGNOSTICS ... ROW_COUNT command. Queries processing more tuples
than that are still not exactly the norm, but they're becoming more
common.
Most values associated with FETCH/MOVE distances, such as PortalRun's count
argument and the count argument of most SPI functions that have one, remain
declared as "long". It's not clear whether it would be worth promoting
those to int64; but it would definitely be a large dollop of additional
API churn on top of this, and it would only help 32-bit platforms which
seem relatively less likely to see any benefit.
Andreas Scherbaum, reviewed by Christian Ullrich, additional hacking by me
2016-03-13 05:05:10 +08:00
|
|
|
explain_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count)
|
2008-11-19 10:59:28 +08:00
|
|
|
{
|
|
|
|
nesting_level++;
|
|
|
|
PG_TRY();
|
|
|
|
{
|
|
|
|
if (prev_ExecutorRun)
|
|
|
|
prev_ExecutorRun(queryDesc, direction, count);
|
|
|
|
else
|
|
|
|
standard_ExecutorRun(queryDesc, direction, count);
|
|
|
|
nesting_level--;
|
|
|
|
}
|
|
|
|
PG_CATCH();
|
|
|
|
{
|
|
|
|
nesting_level--;
|
|
|
|
PG_RE_THROW();
|
|
|
|
}
|
|
|
|
PG_END_TRY();
|
|
|
|
}
|
|
|
|
|
2011-02-28 02:43:29 +08:00
|
|
|
/*
|
|
|
|
* ExecutorFinish hook: all we need do is track nesting depth
|
|
|
|
*/
|
|
|
|
static void
|
|
|
|
explain_ExecutorFinish(QueryDesc *queryDesc)
|
|
|
|
{
|
|
|
|
nesting_level++;
|
|
|
|
PG_TRY();
|
|
|
|
{
|
|
|
|
if (prev_ExecutorFinish)
|
|
|
|
prev_ExecutorFinish(queryDesc);
|
|
|
|
else
|
|
|
|
standard_ExecutorFinish(queryDesc);
|
|
|
|
nesting_level--;
|
|
|
|
}
|
|
|
|
PG_CATCH();
|
|
|
|
{
|
|
|
|
nesting_level--;
|
|
|
|
PG_RE_THROW();
|
|
|
|
}
|
|
|
|
PG_END_TRY();
|
|
|
|
}
|
|
|
|
|
2008-11-19 10:59:28 +08:00
|
|
|
/*
|
|
|
|
* ExecutorEnd hook: log results if needed
|
|
|
|
*/
|
2010-01-07 02:07:19 +08:00
|
|
|
static void
|
2008-11-19 10:59:28 +08:00
|
|
|
explain_ExecutorEnd(QueryDesc *queryDesc)
|
|
|
|
{
|
2016-03-11 22:08:34 +08:00
|
|
|
if (queryDesc->totaltime && auto_explain_enabled() && current_query_sampled)
|
2008-11-19 10:59:28 +08:00
|
|
|
{
|
2009-06-11 22:49:15 +08:00
|
|
|
double msec;
|
2008-11-19 10:59:28 +08:00
|
|
|
|
|
|
|
/*
|
2009-06-11 22:49:15 +08:00
|
|
|
* Make sure stats accumulation is done. (Note: it's okay if several
|
|
|
|
* levels of hook all do this.)
|
2008-11-19 10:59:28 +08:00
|
|
|
*/
|
|
|
|
InstrEndLoop(queryDesc->totaltime);
|
|
|
|
|
|
|
|
/* Log plan if duration is exceeded. */
|
|
|
|
msec = queryDesc->totaltime->total * 1000.0;
|
2009-01-02 09:16:02 +08:00
|
|
|
if (msec >= auto_explain_log_min_duration)
|
2008-11-19 10:59:28 +08:00
|
|
|
{
|
2015-01-16 02:39:33 +08:00
|
|
|
ExplainState *es = NewExplainState();
|
|
|
|
|
|
|
|
es->analyze = (queryDesc->instrument_options && auto_explain_log_analyze);
|
|
|
|
es->verbose = auto_explain_log_verbose;
|
|
|
|
es->buffers = (es->analyze && auto_explain_log_buffers);
|
|
|
|
es->timing = (es->analyze && auto_explain_log_timing);
|
|
|
|
es->summary = es->analyze;
|
|
|
|
es->format = auto_explain_log_format;
|
|
|
|
|
|
|
|
ExplainBeginOutput(es);
|
|
|
|
ExplainQueryText(es, queryDesc);
|
|
|
|
ExplainPrintPlan(es, queryDesc);
|
|
|
|
if (es->analyze && auto_explain_log_triggers)
|
|
|
|
ExplainPrintTriggers(es, queryDesc);
|
|
|
|
ExplainEndOutput(es);
|
2008-11-19 10:59:28 +08:00
|
|
|
|
|
|
|
/* Remove last line break */
|
2015-01-16 02:39:33 +08:00
|
|
|
if (es->str->len > 0 && es->str->data[es->str->len - 1] == '\n')
|
|
|
|
es->str->data[--es->str->len] = '\0';
|
2008-11-19 10:59:28 +08:00
|
|
|
|
2012-02-13 21:22:15 +08:00
|
|
|
/* Fix JSON to output an object */
|
|
|
|
if (auto_explain_log_format == EXPLAIN_FORMAT_JSON)
|
|
|
|
{
|
2015-01-16 02:39:33 +08:00
|
|
|
es->str->data[0] = '{';
|
|
|
|
es->str->data[es->str->len - 1] = '}';
|
2012-02-13 21:22:15 +08:00
|
|
|
}
|
|
|
|
|
2008-11-19 10:59:28 +08:00
|
|
|
/*
|
|
|
|
* Note: we rely on the existing logging of context or
|
|
|
|
* debug_query_string to identify just which statement is being
|
|
|
|
* reported. This isn't ideal but trying to do it here would
|
|
|
|
* often result in duplication.
|
|
|
|
*/
|
|
|
|
ereport(LOG,
|
|
|
|
(errmsg("duration: %.3f ms plan:\n%s",
|
2015-01-16 02:39:33 +08:00
|
|
|
msec, es->str->data),
|
2010-02-26 10:01:40 +08:00
|
|
|
errhidestmt(true)));
|
2008-11-19 10:59:28 +08:00
|
|
|
|
2015-01-16 02:39:33 +08:00
|
|
|
pfree(es->str->data);
|
2008-11-19 10:59:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (prev_ExecutorEnd)
|
|
|
|
prev_ExecutorEnd(queryDesc);
|
|
|
|
else
|
|
|
|
standard_ExecutorEnd(queryDesc);
|
|
|
|
}
|