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

Commitaffcb43

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 parentfdd8446 commitaffcb43

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 LIKEE'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)

[8]ページ先頭

©2009-2025 Movatter.jp