Re: [pgadmin-support] ERROR: relative path not allowed for COPY to file

2013-02-14 Thread Katona, Steve
Thanks Ilya, Everything is blindingly clear now! Thanks for your response, muchly appreciated Steven From: Ilya Makarov [mailto:makarov.t...@gmail.com] Sent: Friday, 15 February 2013 2:50 PM To: Katona, Steve Cc: Subject: Re: [pgadmin-support] ERROR: relative path not allowed for

Re: [pgadmin-support] ERROR: relative path not allowed for COPY to file

2013-02-14 Thread Ilya Makarov
Hi. Is this path(”C:/Dev/test.csv") on the server with PostgreSQL database? You can't COPY to file on the client machine. Part from man pages (http://www.postgresql.org/docs/9.1/static/sql-copy.html): Files named in a COPY command are read or written directly by the server, not by the client ap

Re: [pgadmin-support] ERROR: relative path not allowed for COPY to file

2013-02-14 Thread Katona, Steve
users" for details. Could this be contributing to my problem? Cheers Steven From: Michael Shapiro [mailto:mshapir...@gmail.com] Sent: Friday, 15 February 2013 1:48 PM To: Katona, Steve Cc: pgadmin-support@postgresql.org Subject: Re: [pgadmin-support] ERROR: relative path not allowed f

Re: [pgadmin-support] ERROR: relative path not allowed for COPY to file

2013-02-14 Thread Katona, Steve
peedy response!) From: Michael Shapiro [mailto:mshapir...@gmail.com] Sent: Friday, 15 February 2013 1:48 PM To: Katona, Steve Cc: pgadmin-support@postgresql.org Subject: Re: [pgadmin-support] ERROR: relative path not allowed for COPY to file It might be the / Try \ instead On Thu, Fe

Re: [pgadmin-support] ERROR: relative path not allowed for COPY to file

2013-02-14 Thread Michael Shapiro
It might be the / Try \ instead On Thu, Feb 14, 2013 at 8:43 PM, Katona, Steve < skat...@begavalley.nsw.gov.au> wrote: > I am using pgAdmin 14.1 and then tried with pgAdmin 16.1 > > ** ** > > I have tried: > > COPY (select * from file) TO '”C:/Dev/test.csv”'; > > ** *

[pgadmin-support] ERROR: relative path not allowed for COPY to file

2013-02-14 Thread Katona, Steve
I am using pgAdmin 14.1 and then tried with pgAdmin 16.1 I have tried: COPY (select * from file) TO '"C:/Dev/test.csv"'; And get the error: ERROR: relative path not allowed for COPY to file SQL state: 42602 Also, when I try: COPY temp_import FROM E'