Unix Technical Forum

BUG #1819: COPY filename rejects Windows format path

This is a discussion on BUG #1819: COPY filename rejects Windows format path within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 1819 Logged by: Steve Peterson Email address: steve@zpfe.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:05 AM
Steve Peterson
 
Posts: n/a
Default BUG #1819: COPY filename rejects Windows format path


The following bug has been logged online:

Bug reference: 1819
Logged by: Steve Peterson
Email address: steve@zpfe.com
PostgreSQL version: 8.0.3
Operating system: Windows XP SP 2
Description: COPY filename rejects Windows format path
Details:

Running COPY FROM on a Windows server; using a Windows-format fully
qualified path with backslashes results in the backslashes being interpreted
as escapes.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:05 AM
Richard Huxton
 
Posts: n/a
Default Re: BUG #1819: COPY filename rejects Windows format path

Steve Peterson wrote:
>
> Running COPY FROM on a Windows server; using a Windows-format fully
> qualified path with backslashes results in the backslashes being interpreted
> as escapes.


Did you escape the backslashes: C:\\Windows\\Path ?

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 10:05 AM
John R Pierce
 
Posts: n/a
Default Re: BUG #1819: COPY filename rejects Windows format path

Steve Peterson wrote:

> Running COPY FROM on a Windows server; using a Windows-format fully
> qualified path with backslashes results in the backslashes being interpreted
> as escapes.


Windows APIs are perfectly happy with regular / forward slashes in pathnames,
in fact, I use them everywhere BUT in command line interfaces.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 10:06 AM
Steve Peterson
 
Posts: n/a
Default Re: BUG #1819: COPY filename rejects Windows format path

At 09:47 AM 8/11/2005, Richard Huxton wrote:
>Steve Peterson wrote:
>>Running COPY FROM on a Windows server; using a Windows-format fully
>>qualified path with backslashes results in the backslashes being interpreted
>>as escapes.

>
>Did you escape the backslashes: C:\\Windows\\Path ?


Nope. I used a standard Windows path, copied from the address field in
Windows explorer.

I see now on
http://www.postgresql.org/docs/8.0/i...NTAX-CONSTANTS
(I know, RTFM) that it's documented that the SQL string literal is extended
to accept backslash as an escape, so this is a documented behavior. Can I
convert this bug into a docs bug -- to mention the escaping process
wherever a filename is specified in a SQL string constant?

S


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com