1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-01 01:04:50 +03:00

Avoid use of E'', and thereby creating an unnecessary version-dependency,

by using LIKE...ESCAPE instead.  Per suggestion by andrew@supernews.
This commit is contained in:
Tom Lane 2005-07-18 19:12:09 +00:00
parent fdd84469f7
commit affcb4371c

View 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.63 2005/07/08 16:51:30 tgl Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.64 2005/07/18 19:12:09 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -546,7 +546,7 @@ dumpTablespaces(PGconn *conn)
"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, "
"spclocation, spcacl "
"FROM pg_catalog.pg_tablespace "
"WHERE spcname NOT LIKE E'pg\\_%'");
"WHERE spcname NOT LIKE 'pg!_%' ESCAPE '!'");
if (PQntuples(res) > 0)
printf("--\n-- Tablespaces\n--\n\n");