From: David Bear <David.Bear@asu.edu>
To: pgsql-admin@postgresql.org
Subject: using psql \copy command
Date: Mon, 08 Nov 2004 16:47:43 -0700
Message-ID: <20041108234743.GC24829@asu.edu> (raw)
I'm getting fairly frustrated here. I'm trying to populate a table
using psql copy command. The file lives in the client machine where
psql is running, not on the back end. I assume from the readings that
I can you the \copy command to get to data in my clients file system.
Yet, its not working.. Here are the commands:
iddwb@moroni:~/data/copp/dev/npcenter> ls -l
total 231
-rw-r--r-- 1 3117 iddwb 88979 2004-11-08 16:32 contactName.txt
-rw------- 1 3117 iddwb 145024 2004-11-08 16:09 tblContactNames.txt
iddwb@moroni:~/data/copp/dev/npcenter>
psql -p 5432 -h localhost npcenter -U david
npcenter=> \copy "contactName" from "/home/iddwb/data/copp/dev/npcenter/contact
Name.txt"
"/home/iddwb/data/copp/dev/npcenter/contactName.txt": No such file or
directory
npcenter=> \copy "contactName" from "./contactName.txt"
"./contactName.txt": No such file or directory
npcenter=>
I must be missing something very obvious.. Help...
--
David Bear
phone: 480-965-8257
fax: 480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
"Beware the IP portfolio, everyone will be suspect of trespassing"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: David.Bear@asu.edu
Subject: Re: using psql \copy command
In-Reply-To: <20041108234743.GC24829@asu.edu>
References: <20041108234743.GC24829@asu.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox