]> granicus.if.org Git - postgresql/commitdiff
Fix vacuumlo to avoid unnecessary use of backslash in search pattern.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Feb 2006 22:34:07 +0000 (22:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Feb 2006 22:34:07 +0000 (22:34 +0000)
Per Michael Fuhr.

contrib/vacuumlo/vacuumlo.c

index 810f9cd36cac3e575f3b3d521036cf0da29ee9bf..cc0124997e8afcfe1abd44a90455f1f1f7edcc90 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/contrib/vacuumlo/vacuumlo.c,v 1.30 2005/10/15 02:49:08 momjian Exp $
+ *       $PostgreSQL: pgsql/contrib/vacuumlo/vacuumlo.c,v 1.30.2.1 2006/02/23 22:34:07 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -167,7 +167,7 @@ vacuumlo(char *database, struct _param * param)
        strcat(buf, "      AND c.relnamespace = s.oid ");
        strcat(buf, "      AND t.typname in ('oid', 'lo') ");
        strcat(buf, "      AND c.relkind = 'r'");
-       strcat(buf, "      AND s.nspname NOT LIKE 'pg\\\\_%'");
+       strcat(buf, "      AND s.nspname !~ '^pg_'");
        res = PQexec(conn, buf);
        if (PQresultStatus(res) != PGRES_TUPLES_OK)
        {