Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf87d487

Browse files
committed
Fix vacuumlo to avoid unnecessary use of backslash in search pattern.
Per Michael Fuhr.
1 parent737651f commitf87d487

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.nspnameNOT 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)

[8]ページ先頭

©2009-2025 Movatter.jp