|
6 | 6 | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc |
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | | - *$Id: analyze.c,v 1.148 2000/06/17 21:48:40 tgl Exp $ |
| 9 | + *$Id: analyze.c,v 1.149 2000/07/02 04:04:09 tgl Exp $ |
10 | 10 | * |
11 | 11 | *------------------------------------------------------------------------- |
12 | 12 | */ |
@@ -185,24 +185,6 @@ transformStmt(ParseState *pstate, Node *parseTree) |
185 | 185 | } |
186 | 186 | break; |
187 | 187 |
|
188 | | -caseT_VacuumStmt: |
189 | | -{ |
190 | | -MemoryContextoldcontext; |
191 | | - |
192 | | -/* |
193 | | - * make sure that this Query is allocated in TopMemory |
194 | | - * context because vacuum spans transactions and we don't |
195 | | - * want to lose the vacuum Query due to end-of-transaction |
196 | | - * free'ing |
197 | | - */ |
198 | | -oldcontext=MemoryContextSwitchTo(TopMemoryContext); |
199 | | -result=makeNode(Query); |
200 | | -result->commandType=CMD_UTILITY; |
201 | | -result->utilityStmt= (Node*)parseTree; |
202 | | -MemoryContextSwitchTo(oldcontext); |
203 | | -} |
204 | | -break; |
205 | | - |
206 | 188 | caseT_ExplainStmt: |
207 | 189 | { |
208 | 190 | ExplainStmt*n= (ExplainStmt*)parseTree; |
|