projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aaf09a
)
Quote pathnames so pg_standby works with paths that have
author
Magnus Hagander
<magnus@hagander.net>
Mon, 16 Jul 2007 08:40:52 +0000
(08:40 +0000)
committer
Magnus Hagander
<magnus@hagander.net>
Mon, 16 Jul 2007 08:40:52 +0000
(08:40 +0000)
spaces in them.
ISHIDA Akio
contrib/pg_standby/pg_standby.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_standby/pg_standby.c
b/contrib/pg_standby/pg_standby.c
index 7eb4a51ba4cc19ceab646a2d60f2e13a8796b990..f1a771267f0a8b711ff4489f7380d48e4524b16b 100644
(file)
--- a/
contrib/pg_standby/pg_standby.c
+++ b/
contrib/pg_standby/pg_standby.c
@@
-69,7
+69,7
@@
int restoreCommandType;
int nextWALFileType;
#define SET_RESTORE_COMMAND(cmd, arg1, arg2) \
- snprintf(restoreCommand, MAXPGPATH, cmd "
%s %s
", arg1, arg2)
+ snprintf(restoreCommand, MAXPGPATH, cmd "
\"%s\" \"%s\"
", arg1, arg2)
struct stat stat_buf;