6

I am trying to import a CSV file that uses semicolons ; as delimiters instead of commas from S3 to AWS RDS Postgres table.

SELECT aws_s3.table_import_from_s3 ('tmp_foo','','(format csv, delimiter '','', header)', 'my-bucket', 'path/file.csv','eu-west-1');

This fails with error

ERROR: Semicolon is not allowed in options

Same thing using delimiter '','' works fine.

How to escape semicolon so that it works? For example delimiter ''\;'' doesn't work.

Importing from S3 is AWS extension available in recent RDS Postgres versions: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Procedural.Importing.html

I am using Postgres Aurora 11.6.

1 Answer 1

5

I asked about this from the AWS Support and they confirmed that semicolon is not supported as a delimiter. Changing this probably won't happen anytime soon.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.