Skip to content

Commit affcb43

Browse files
committed
Avoid use of E'', and thereby creating an unnecessary version-dependency,
by using LIKE...ESCAPE instead. Per suggestion by andrew@supernews.
1 parent fdd8446 commit affcb43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_dump/pg_dumpall.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
88
*
9-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.63 2005/07/08 16:51:30 tgl Exp $
9+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.64 2005/07/18 19:12:09 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -543,10 +543,10 @@ dumpTablespaces(PGconn *conn)
543543
* pg_xxx)
544544
*/
545545
res = executeQuery(conn, "SELECT spcname, "
546-
"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, "
546+
"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, "
547547
"spclocation, spcacl "
548548
"FROM pg_catalog.pg_tablespace "
549-
"WHERE spcname NOT LIKE E'pg\\_%'");
549+
"WHERE spcname NOT LIKE 'pg!_%' ESCAPE '!'");
550550

551551
if (PQntuples(res) > 0)
552552
printf("--\n-- Tablespaces\n--\n\n");

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