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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy