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

Commit 00f325d

Browse files
committed
Subselects with =, >, etc.
Cleanup for vacuum help, manual page, and error message
1 parent f00a9e3 commit 00f325d

File tree

5 files changed

+462
-10
lines changed

5 files changed

+462
-10
lines changed

src/backend/commands/vacuum.c

Lines changed: 4 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.59 1998/01/31 04:38:21 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.60 1998/02/03 19:26:33 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -135,7 +135,9 @@ vacuum(char *vacrel, bool verbose, bool analyze, List *va_spec)
135135
pmem = PortalGetVariableMemory(vc_portal);
136136
old = MemoryContextSwitchTo((MemoryContext) pmem);
137137

138-
Assert(va_spec == NIL || analyze);
138+
if (va_spec == NIL || analyze)
139+
elog(ERROR,"Can't vacuum columns, only tables. You can 'vacuum analyze' columns.");
140+
139141
foreach(le, va_spec)
140142
{
141143
char *col = (char *) lfirst(le);

0 commit comments

Comments
 (0)