0

Error when importing csv file to postgres database in AWS RDS:

Code:

COPY public."tableTest" FROM 'C:\Temp\tableTest.csv' DELIMITER ';' CSV HEADER ENCODING 'LATIN1';

Erro:

enter image description here

If I try to import it into my postgres on my desktop, it works. The error only happens in RDS and I am using the same database structure.

1 Answer 1

1

I managed to import the .csv through the Windows terminal with the following command:

psql --host xxxxxxxxxxxx.us-east-1.rds.amazonaws.com --port 5432 --username postgres --dbname newDatabase -c "\copy public.tableTest FROM 'C:\Temp\tableTest.csv' DELIMITER ';' CSV HEADER ENCODING 'LATIN1';"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.