git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 737651f)
Fix vacuumlo to avoid unnecessary use of backslash in search pattern.
2006年2月23日 22:33:59 +0000 (22:33 +0000)
2006年2月23日 22:33:59 +0000 (22:33 +0000)
Per Michael Fuhr.


diff --git a/contrib/vacuumlo/vacuumlo.c b/contrib/vacuumlo/vacuumlo.c
index 810f9cd36cac3e575f3b3d521036cf0da29ee9bf..93da782f9a0c87d6677ccc02f3bce4ad441d6d1d 100644 (file)
--- a/contrib/vacuumlo/vacuumlo.c
+++ b/contrib/vacuumlo/vacuumlo.c
@@ -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.31 2006年02月23日 22:33:59 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)
{
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /