Re: BUG #1269: Copy To Gives Relative path error when explicit path given. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1269: Copy To Gives Relative path error when explicit path given.
Date
Msg-id 23857.1096158965@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1269: Copy To Gives Relative path error when explicit path given.  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> testdb=# COPY users TO 'D:\Program Files\PostgreSQL\DataFlatFiles\usersdata';
> ERROR:  relative path not allowed for COPY to file

You need to double the backslashes.  Or use forward slashes.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1269: Copy To Gives Relative path error when explicit path given.
Next
From: Michael Fuhr
Date:
Subject: Re: Permissions problem with sequences