From: Hiroshi Inoue Date: Mon, 17 Sep 2001 02:30:54 +0000 (+0000) Subject: Change vacuumlo to take 'lo' type into account. X-Git-Tag: REL7_2_BETA1~378 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6cb8701db20245631d6f16c19d98ea3059798b2;p=postgresql Change vacuumlo to take 'lo' type into account. --- diff --git a/contrib/vacuumlo/vacuumlo.c b/contrib/vacuumlo/vacuumlo.c index 002c77fb61..30bd707b8d 100644 --- a/contrib/vacuumlo/vacuumlo.c +++ b/contrib/vacuumlo/vacuumlo.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/contrib/vacuumlo/vacuumlo.c,v 1.9 2001/03/22 03:59:11 momjian Exp $ + * $Header: /cvsroot/pgsql/contrib/vacuumlo/vacuumlo.c,v 1.10 2001/09/17 02:30:54 inoue Exp $ * *------------------------------------------------------------------------- */ @@ -111,7 +111,7 @@ vacuumlo(char *database, int verbose) strcat(buf, "WHERE a.attnum > 0 "); strcat(buf, " AND a.attrelid = c.oid "); strcat(buf, " AND a.atttypid = t.oid "); - strcat(buf, " AND t.typname = 'oid' "); + strcat(buf, " AND t.typname in ('oid', 'lo') "); strcat(buf, " AND c.relkind = 'r'"); strcat(buf, " AND c.relname NOT LIKE 'pg_%'"); res = PQexec(conn, buf);