создал таблицу
create table monitors (
mon_ID NUMERIC not null,
mon_INV_NUM varchar(9) not null,
mon_MODEL varchar(200) not null,
mon_UCH varchar(200) not null,
mon_USER varchar(200),
constraint mon_id_pk primary key (mon_id)
);
прописываю
copy monitors (mon_ID, mon_INV_NUM, mon_MODEL, mon_UCH, mon_USER)
from {'/home/saidmir/project/105/monitors.txt'};
ругается на то, что типа
Physical database connection acquired for: phone
00:12:22 [COPY - 0 row(s), 0.000 secs] [Error Code: 0, SQL State: 42601] ERROR: syntax error at or near "{"
Позиция: 68
... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec [0 successful, 0 warnings, 1 errors]
Вроде пиши как в доке написано
COPY tablename [ ( column [, ...] ) ]
FROM { 'filename' | STDIN }
[ [ WITH ]
[ BINARY ]
[ OIDS ]
[ DELIMITER [ AS ] 'delimiter' ]
[ NULL [ AS ] 'null string' ]
[ CSV [ HEADER ]
[ QUOTE [ AS ] 'quote' ]
[ ESCAPE [ AS ] 'escape' ]
[ FORCE NOT NULL column [, ...] ]
или просто глюк или что