diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-02-02 23:46:38 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-02-02 23:46:38 +0000 |
commit | c7bceca156cc7ffd744b17669b7839b69eb1c9d3 (patch) | |
tree | 58f7d62d3aa61ac3f6228c2c67f3bb96f2c12983 /src/include/commands | |
parent | 6adb475f77c63eee8ba8b85bf00cd841d57037aa (diff) | |
download | postgresql-c7bceca156cc7ffd744b17669b7839b69eb1c9d3.tar.gz postgresql-c7bceca156cc7ffd744b17669b7839b69eb1c9d3.zip |
Implement EXPLAIN EXECUTE. By Neil Conway, with some kibitzing from
Tom Lane.
Diffstat (limited to 'src/include/commands')
-rw-r--r-- | src/include/commands/explain.h | 6 | ||||
-rw-r--r-- | src/include/commands/prepare.h | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h index 7889ccccfb8..040740490bd 100644 --- a/src/include/commands/explain.h +++ b/src/include/commands/explain.h @@ -6,16 +6,20 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994-5, Regents of the University of California * - * $Id: explain.h,v 1.17 2002/06/20 20:29:49 momjian Exp $ + * $Id: explain.h,v 1.18 2003/02/02 23:46:38 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef EXPLAIN_H #define EXPLAIN_H +#include "executor/executor.h" #include "nodes/parsenodes.h" #include "tcop/dest.h" + extern void ExplainQuery(ExplainStmt *stmt, CommandDest dest); +extern void ExplainOnePlan(QueryDesc *queryDesc, ExplainStmt *stmt, + TupOutputState *tstate); #endif /* EXPLAIN_H */ diff --git a/src/include/commands/prepare.h b/src/include/commands/prepare.h index 884236ff99e..aad64166757 100644 --- a/src/include/commands/prepare.h +++ b/src/include/commands/prepare.h @@ -6,24 +6,22 @@ * * Copyright (c) 2002, PostgreSQL Global Development Group * - * $Id: prepare.h,v 1.2 2002/09/04 20:31:42 momjian Exp $ + * $Id: prepare.h,v 1.3 2003/02/02 23:46:38 tgl Exp $ * *------------------------------------------------------------------------- */ - #ifndef PREPARE_H #define PREPARE_H +#include "executor/executor.h" #include "nodes/parsenodes.h" #include "tcop/dest.h" extern void PrepareQuery(PrepareStmt *stmt); - extern void ExecuteQuery(ExecuteStmt *stmt, CommandDest outputDest); - extern void DeallocateQuery(DeallocateStmt *stmt); - extern List *FetchQueryParams(const char *plan_name); +extern void ExplainExecuteQuery(ExplainStmt *stmt, TupOutputState *tstate); #endif /* PREPARE_H */ |