diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-02 04:04:09 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-02 04:04:09 +0000 |
commit | 72164e86a6d93e91e98f497f3c7cc3fe5593d6f4 (patch) | |
tree | df6022e2cb69eab6b0bc3eaa780b93957856b00c | |
parent | 57eeb0d315655443287869f1d8ca54464b984a11 (diff) | |
download | postgresql-72164e86a6d93e91e98f497f3c7cc3fe5593d6f4.tar.gz postgresql-72164e86a6d93e91e98f497f3c7cc3fe5593d6f4.zip |
Remove memory leak from VACUUM parsing.
-rw-r--r-- | src/backend/parser/analyze.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 8e23170ac8a..a3a92f6db9c 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: analyze.c,v 1.148 2000/06/17 21:48:40 tgl Exp $ + * $Id: analyze.c,v 1.149 2000/07/02 04:04:09 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -185,24 +185,6 @@ transformStmt(ParseState *pstate, Node *parseTree) } break; - case T_VacuumStmt: - { - MemoryContext oldcontext; - - /* - * make sure that this Query is allocated in TopMemory - * context because vacuum spans transactions and we don't - * want to lose the vacuum Query due to end-of-transaction - * free'ing - */ - oldcontext = MemoryContextSwitchTo(TopMemoryContext); - result = makeNode(Query); - result->commandType = CMD_UTILITY; - result->utilityStmt = (Node *) parseTree; - MemoryContextSwitchTo(oldcontext); - } - break; - case T_ExplainStmt: { ExplainStmt *n = (ExplainStmt *) parseTree; |