]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Back-patch fix for erroneous backslashing of LIKE pattern.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jul 2005 19:18:19 +0000 (19:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jul 2005 19:18:19 +0000 (19:18 +0000)
src/bin/pg_dump/pg_dumpall.c

index 272fad04ba7ca929055f5e4306a4dc036c0d5590..ca5ae15378d67a905f87caaf24cf1e6d3d0e18dc 100644 (file)
@@ -6,7 +6,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  *
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.57.4.1 2005/04/18 23:48:01 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.57.4.2 2005/07/18 19:18:19 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -539,7 +539,7 @@ dumpTablespaces(PGconn *conn)
                                         "pg_catalog.pg_get_userbyid(spcowner) AS spcowner, "
                                           "spclocation, spcacl "
                                           "FROM pg_catalog.pg_tablespace "
-                                          "WHERE spcname NOT LIKE 'pg\\_%'");
+                                          "WHERE spcname NOT LIKE 'pg!_%' ESCAPE '!'");
 
        if (PQntuples(res) > 0)
                printf("--\n-- Tablespaces\n--\n\n");