докере то указывать путь какой? моей машины или корень докера?
[58P01] ERROR: could not open file "/Users/ilya/Downloads/logins.csv" for reading: No such file or directory Подсказка: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
Внутри docker-а найдите Ваш файл и попробуйте cat
DROP TABLE IF EXISTS logins; CREATE TEMP TABLE logins( login BIGINT ); COPY logins FROM 'logins.csv' WITH (FORMAT csv); __ [58P01] ERROR: could not open file "logins.csv" for reading: No such file or directory Подсказка: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
COPY logins FROM '/logins.csv' WITH csv;
хоспаде. спасибо! мучался оч долго
Обсуждают сегодня