Search Postgresql Archives

Re: COPY command documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have added the following patch for 8.2 that suggests using E'' strings
and doubling backslashes used as path separators, and backpatched the
later suggestion to 8.1.  Thanks.

---------------------------------------------------------------------------

Oisin Glynn wrote:
> I have driven myself to distraction for the last 30 minutes trying to 
> get COPY to work on Windows  XP.  The Unix style c:/afolder/afile 
> instead of c:\afolder\afile was a desperation attempt.
> 
> I had tried all sorts of double slashes \\ putting the whole path in 
> quotes basically all sorts of foolishness.  I would suggest the there 
> should be a Windows example(s) in the documents as well as a *NIX style 
> one(s) where necessary. Did I miss this somewhere or should I put a 
> comment on the doc or what can I do to help the next Windows user.
> 
> Oisin
> 
> 
> P.S.
> I just discovered that the comments from 8.0 had the answer I was 
> looking for but these comments are not in the 8.1 docs. Should the 
> comments be rolled forward as new versions are created? Or if valid 
> comments added to the docs themselves?
> 
> http://www.postgresql.org/docs/8.1/interactive/sql-copy.html
> 
> http://www.postgresql.org/docs/8.0/interactive/sql-copy.html
> 
> Now happily using COPY,
> Oisin
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
> 

-- 
  Bruce Momjian   http://candle.pha.pa.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: doc/src/sgml/ref/copy.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v
retrieving revision 1.73
diff -c -c -r1.73 copy.sgml
*** doc/src/sgml/ref/copy.sgml	3 Mar 2006 19:54:10 -0000	1.73
--- doc/src/sgml/ref/copy.sgml	22 Apr 2006 02:58:39 -0000
***************
*** 106,112 ****
      <term><replaceable class="parameter">filename</replaceable></term>
      <listitem>
       <para>
!       The absolute path name of the input or output file.
       </para>
      </listitem>
     </varlistentry>
--- 106,114 ----
      <term><replaceable class="parameter">filename</replaceable></term>
      <listitem>
       <para>
!       The absolute path name of the input or output file.  Windows users
!       might need to use an <literal>E''</> string and double backslashes
!       used as path separators.
       </para>
      </listitem>
     </varlistentry>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux