Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bced35f

Browse files
committed
Vacuum parameter fix.
1 parent 73867f7 commit bced35f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/vacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.60 1998/02/03 19:26:33 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.61 1998/02/03 21:57:27 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -135,7 +135,7 @@ vacuum(char *vacrel, bool verbose, bool analyze, List *va_spec)
135135
pmem = PortalGetVariableMemory(vc_portal);
136136
old = MemoryContextSwitchTo((MemoryContext) pmem);
137137

138-
if (va_spec == NIL || analyze)
138+
if (va_spec != NIL && !analyze)
139139
elog(ERROR,"Can't vacuum columns, only tables. You can 'vacuum analyze' columns.");
140140

141141
foreach(le, va_spec)

0 commit comments

Comments
 (0)