I am trying to copy the content of an AWS S3 file into a AWS RDS Postgresql table but seem to get my syntax wrong?
COPY myschema.mytable FROM 'S3://bucket-name/file_name.csv' (FORMAT CSV, DELIMITER E'\t', ENCODING 'utf-8');
returns the following error: ERROR: could not open file "S3://bucket-name/file_name.csv" for reading: Invalid argument
Any idea what I am doing wrong?