Re: BUG #17498: Receive Failed: (error code 1) when importing any csv file from pgAdmin with no explanations
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #17498: Receive Failed: (error code 1) when importing any csv file from pgAdmin with no explanations |
| Дата | |
| Msg-id | 2019391.1653515838@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #17498: Receive Failed: (error code 1) when importing any csv file from pgAdmin with no explanations (PG Bug reporting form <noreply@postgresql.org>) |
| Ответы |
Re: BUG #17498: Receive Failed: (error code 1) when importing any csv file from pgAdmin with no explanations
|
| Список | pgsql-bugs |
jam paydavousi <jampaydavousi@yahoo.com> writes:
> Thank you for following up Tom. I did what you instructed- i.e., filing distinctly from pgAdmin link you provided.
> However, I have the same issue when I attempt to import the csv file via the command line interface on mac terminal.
Itcopies 0 rows
> postgres-# \copy alove from '/Users/jam/alovel.csv' delimiter ',' csv header;
> COPY 0
Hm. Sure looks like Postgres thinks the file is empty.
That "CSV HEADER" option would silently eat the first line, so I'm
wondering if the data looks like it's a single line to COPY,
ie maybe there is something funny about the newlines in your file.
You could check this theory easily by leaving off "CSV HEADER"
and seeing if the results change.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера