Re: COPY problem on -- strings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: COPY problem on -- strings
Дата
Msg-id 8235.1227118713@sss.pgh.pa.us
обсуждение исходный текст
Ответ на COPY problem on -- strings  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
Список pgsql-general
"Sabin Coanda" <sabin.coanda@deuromedia.ro> writes:
> I backup the database plain with the command:
>  pg_dump.exe -U postgres -F p -v -f "backup_plain.sql" "DemoDB"

> I create a new database, and I run the script. But it rise me the error:
>   ERROR:  syntax error at or near "1"
>   LINE 49: 1 -- any text

> I look for the error line and I saw how pg_dump created the script
> statement:
>   COPY "A" ("Col1", "Col2") FROM stdin;
>   1 -- any text
>   \.

Is that the *first* error message you got?

My guess is that something went wrong with the COPY command, so that
psql failed to switch into copy-data mode and is trying to interpret
the following stuff as SQL commands.

            regards, tom lane

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: PostgreSQL 8.4 download?
Следующее
От: "Josh Harrison"
Дата:
Сообщение: Re: PostgreSQL 8.4 download?