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

Commit f87d487

Browse files
committed
Fix vacuumlo to avoid unnecessary use of backslash in search pattern.
Per Michael Fuhr.
1 parent 737651f commit f87d487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/vacuumlo/vacuumlo.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/contrib/vacuumlo/vacuumlo.c,v 1.30 2005/10/15 02:49:08 momjian Exp $
11+
* $PostgreSQL: pgsql/contrib/vacuumlo/vacuumlo.c,v 1.31 2006/02/23 22:33:59 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -167,7 +167,7 @@ vacuumlo(char *database, struct _param * param)
167167
strcat(buf, " AND c.relnamespace = s.oid ");
168168
strcat(buf, " AND t.typname in ('oid', 'lo') ");
169169
strcat(buf, " AND c.relkind = 'r'");
170-
strcat(buf, " AND s.nspname NOT LIKE 'pg\\\\_%'");
170+
strcat(buf, " AND s.nspname !~ '^pg_'");
171171
res = PQexec(conn, buf);
172172
if (PQresultStatus(res) != PGRES_TUPLES_OK)
173173
{

0 commit comments

Comments
 (0)