Content-Length: 273738 | pFad | http://github.com/postgrespro/postgres/commit/f87d4875e94df3cbe3407ebba95d7ba30a655363

38 Fix vacuumlo to avoid unnecessary use of backslash in search pattern. · postgrespro/postgres@f87d487 · GitHub
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

Lines changed: 2 additions & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f87d4875e94df3cbe3407ebba95d7ba30a655363

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy