aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/pgarch.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-08-12 19:03:44 +0000
committerBruce Momjian <bruce@momjian.us>2004-08-12 19:03:44 +0000
commit10249abfa19a53e9e158396333400ae66ae1c02b (patch)
tree80887a83530e2fc6244c0ac9396c01f6f9a82b47 /src/backend/postmaster/pgarch.c
parent43ea65a0dcc1de11e7de841cdf6bc57348ac17b1 (diff)
downloadpostgresql-10249abfa19a53e9e158396333400ae66ae1c02b.tar.gz
postgresql-10249abfa19a53e9e158396333400ae66ae1c02b.zip
Cleanup Win32 COPY handling, and move archive examples to SGML.
Diffstat (limited to 'src/backend/postmaster/pgarch.c')
-rw-r--r--src/backend/postmaster/pgarch.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/backend/postmaster/pgarch.c b/src/backend/postmaster/pgarch.c
index 83587551c9b..d11bf17a2b4 100644
--- a/src/backend/postmaster/pgarch.c
+++ b/src/backend/postmaster/pgarch.c
@@ -19,7 +19,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.6 2004/08/09 16:26:06 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.7 2004/08/12 19:03:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -436,17 +436,8 @@ pgarch_archiveXlog(char *xlog)
/* %p: full path of source file */
sp++;
StrNCpy(dp, pathname, endp-dp);
-#ifndef WIN32
+ make_native_path(dp);
dp += strlen(dp);
-#else
- /* On Windows, change / to \ in the substituted path */
- while (*dp)
- {
- if (*dp == '/')
- *dp = '\\';
- dp++;
- }
-#endif
break;
case 'f':
/* %f: filename of source file */