#include "nodes/parsenodes.h"
Go to the source code of this file.
Functions | |
void | DiscardCommand (DiscardStmt *stmt, bool isTopLevel) |
void DiscardCommand | ( | DiscardStmt * | stmt, | |
bool | isTopLevel | |||
) |
Definition at line 30 of file discard.c.
References DISCARD_ALL, DISCARD_PLANS, DISCARD_TEMP, DiscardAll(), elog, ERROR, ResetPlanCache(), ResetTempTableNamespace(), and DiscardStmt::target.
Referenced by standard_ProcessUtility().
{ switch (stmt->target) { case DISCARD_ALL: DiscardAll(isTopLevel); break; case DISCARD_PLANS: ResetPlanCache(); break; case DISCARD_TEMP: ResetTempTableNamespace(); break; default: elog(ERROR, "unrecognized DISCARD target: %d", stmt->target); } }