mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Fix vacuumlo to avoid unnecessary use of backslash in search pattern.
Per Michael Fuhr.
This commit is contained in:
parent
737651f6be
commit
f87d4875e9
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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 c.relnamespace = s.oid ");
|
||||||
strcat(buf, " AND t.typname in ('oid', 'lo') ");
|
strcat(buf, " AND t.typname in ('oid', 'lo') ");
|
||||||
strcat(buf, " AND c.relkind = 'r'");
|
strcat(buf, " AND c.relkind = 'r'");
|
||||||
strcat(buf, " AND s.nspname NOT LIKE 'pg\\\\_%'");
|
strcat(buf, " AND s.nspname !~ '^pg_'");
|
||||||
res = PQexec(conn, buf);
|
res = PQexec(conn, buf);
|
||||||
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user