dbTalk Databases Forums  

ERROR: COPY <Table Name> FROM <file>

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss ERROR: COPY <Table Name> FROM <file> in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kumar S
 
Posts: n/a

Default ERROR: COPY <Table Name> FROM <file> - 09-17-2004 , 02:59 PM






Dear group,
I am trying to upload a file into a table using COPY
command.


My table:

exp_id exp_X exp_y exp_std exp_npix





My file:
CellHeader=X Y MEAN STDV NPIXELS




My sql statement:
create table EXPERIMENT
(
exp_id serial not null,
exp_name varchar(32) not null,
con_id serial references
contacts(con_id),
exp_type varchar(32) not null,
exp_desc varchar(64),
exp_pmid integer not null,
exp_rawdata_url varchar(32),
constraint experiment_pk primary
key(exp_id)
);




My copy statement:

marray2=> COPY affy_exp from
'/home/speri/temp/postgres/marray2/tm.cel';
ERROR: must be superuser to COPY to or from a file
HINT: Anyone can COPY to stdout or from stdin. psql's
\copy command also works for anyone.
marray2=>


Could any help me whats going wrong with this COPY and
\copy (two different commands).

Thanks

Kumar




_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #2  
Old   
M. Bastin
 
Posts: n/a

Default Re: ERROR: COPY <Table Name> FROM <file> - 09-18-2004 , 08:44 AM






Quote:
marray2=> COPY affy_exp from
'/home/speri/temp/postgres/marray2/tm.cel';
ERROR: must be superuser to COPY to or from a file
This means you must log in to pgsql with enough privileges, e.g. as
the user 'postgres'

Marc

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

http://www.postgresql.org/docs/faqs/FAQ.html



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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.