Re: simple COPY FROM issue

From: "Kevin Duffy" <KD(at)wrinvestments(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Cc: "brian" <brian(at)zijn-digital(dot)com>
Subject: Re: simple COPY FROM issue
Date: 2008-11-13 15:18:56
Message-ID: DFC309C8A42633419600522FA8C4AE1A5610DB@mail-01.wrcapital.corp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


This worked where E: is on the database server
copy imagineoptions
from 'E:\\ORGDAT~1\\data\\xxxPositions\\20081112_Options.csv'
DELIMITERS ',' CSV ;

This does not work fileprint-01 is a different server.
copy imagineoptions
from
\\fileprint-01\Company\xxx\Benchmarking\xxxPositions\20081112_Options.cs
v
DELIMITERS ',' CSV ;

So the COPY FROM command in Postgres can not handle a URL

Thanks for your attention to this matter.

KD

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of brian
Sent: Wednesday, November 12, 2008 5:38 PM
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] simple COPY FROM issue

The file must be on the server. IIRC, with COPY FROM (as opposed to COPY

TO) the path can be relative to the server process dir but it's probably

a good idea to always use an absolute path.

If you wish to copy from the client machine you can use \copy within
psql.

b

Kevin Duffy wrote:
> Hello:
>
>
>
> A follow up question that may clear this all up:
>
>
>
> Is the 'filename' relative to the server machine or the client where
> pgAdmin is running?
>
>
>
>
>
> Kevin Duffy
>
> WR Capital Management
>
> 40 Signal Rd
>
> Stamford, CT
>
> 203-504-6221
>
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2008-11-13 15:19:34 Re: [GENERAL] db_user_namespace, md5 and changing passwords
Previous Message Sam Mason 2008-11-13 15:11:37 Re: Suboptimal execution plan for simple query