PostgreSQL Source Code  git master
discard.h File Reference
#include "nodes/parsenodes.h"
Include dependency graph for discard.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void DiscardCommand (DiscardStmt *stmt, bool isTopLevel)
 

Function Documentation

◆ DiscardCommand()

void DiscardCommand ( DiscardStmt stmt,
bool  isTopLevel 
)

Definition at line 31 of file discard.c.

32 {
33  switch (stmt->target)
34  {
35  case DISCARD_ALL:
36  DiscardAll(isTopLevel);
37  break;
38 
39  case DISCARD_PLANS:
41  break;
42 
43  case DISCARD_SEQUENCES:
45  break;
46 
47  case DISCARD_TEMP:
49  break;
50 
51  default:
52  elog(ERROR, "unrecognized DISCARD target: %d", stmt->target);
53  }
54 }
void ResetSequenceCaches(void)
Definition: sequence.c:1943
static void DiscardAll(bool isTopLevel)
Definition: discard.c:57
#define ERROR
Definition: elog.h:39
#define elog(elevel,...)
Definition: elog.h:225
#define stmt
Definition: indent_codes.h:59
void ResetTempTableNamespace(void)
Definition: namespace.c:4644
@ DISCARD_ALL
Definition: parsenodes.h:3954
@ DISCARD_PLANS
Definition: parsenodes.h:3955
@ DISCARD_SEQUENCES
Definition: parsenodes.h:3956
@ DISCARD_TEMP
Definition: parsenodes.h:3957
void ResetPlanCache(void)
Definition: plancache.c:2185

References DISCARD_ALL, DISCARD_PLANS, DISCARD_SEQUENCES, DISCARD_TEMP, DiscardAll(), elog, ERROR, ResetPlanCache(), ResetSequenceCaches(), ResetTempTableNamespace(), and stmt.

Referenced by standard_ProcessUtility().