diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-08-12 19:03:44 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-08-12 19:03:44 +0000 |
commit | 10249abfa19a53e9e158396333400ae66ae1c02b (patch) | |
tree | 80887a83530e2fc6244c0ac9396c01f6f9a82b47 /src/port/path.c | |
parent | 43ea65a0dcc1de11e7de841cdf6bc57348ac17b1 (diff) | |
download | postgresql-10249abfa19a53e9e158396333400ae66ae1c02b.tar.gz postgresql-10249abfa19a53e9e158396333400ae66ae1c02b.zip |
Cleanup Win32 COPY handling, and move archive examples to SGML.
Diffstat (limited to 'src/port/path.c')
-rw-r--r-- | src/port/path.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/port/path.c b/src/port/path.c index 2a7428d0ba6..50f6476f427 100644 --- a/src/port/path.c +++ b/src/port/path.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/path.c,v 1.28 2004/08/12 18:32:52 momjian Exp $ + * $PostgreSQL: pgsql/src/port/path.c,v 1.29 2004/08/12 19:03:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -88,8 +88,17 @@ last_dir_separator(const char *filename) /* - * make_native_path - * On WIN32, change / to \ in the path. + * make_native_path - on WIN32, change / to \ in the path + * + * This is required because WIN32 COPY is an internal CMD.EXE + * command and doesn't process forward slashes in the same way + * as external commands. Quoting the first argument to COPY + * does not convert forward to backward slashes, but COPY does + * properly process quoted forward slashes in the second argument. + * + * COPY works with quoted forward slashes in the first argument + * only if the current directory is the same as the directory + * of the first argument. */ void make_native_path(char *filename) |