Re: copy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: copy
Дата
Msg-id 3739.1138719626@sss.pgh.pa.us
обсуждение исходный текст
Ответ на copy  (Clifton Zama <csz@jhb.ucs.co.za>)
Список pgsql-novice
Clifton Zama <csz@jhb.ucs.co.za> writes:
> Please correct : copy tmp_table from supplier_merch.dat with delimiter '|';

> ERROR: parser: parse error at or near "table" at character 6.

Are you sure you transcribed the command accurately?  The only thing I
see wrong with it is that you didn't quote the file name, but the error
message is not pointing at that.  I can duplicate the error message by
inserting the word "table", eg

regression=# copy table foo from '/tmp/myfile';
ERROR:  parser: parse error at or near "table" at character 6
regression=#

BTW, syntax error messages have not been spelled this way since Postgres
7.3, so the server you are talking to is older than you think.  It's
certainly not PG 8.0.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Dynamic column names in plpgsql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: lost archives, alpha data files