Ask Your Question
4

How can a CSV file that uses semicolons as delimiters be imported from S3 to an RDS Postgres database?

asked 2023-07-05 10:39:23 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-05 10:49:02 +0000

ladyg gravatar image

To import a CSV file with semicolons as delimiters from S3 to a RDS Postgres database, follow these steps:

  1. Create a new RDS Postgres instance and note the endpoint, username, password, and database name.

  2. Upload the CSV file to an S3 bucket.

  3. Open pgAdmin or any other PostgreSQL management tool and connect to the Postgres database.

  4. Create a new table in the database that matches the structure of the CSV file.

  5. In pgAdmin, right-click on the table and select "Import/Export."

  6. In the "Data Copy" dialog box, select "Import," and then select "From file."

  7. In the "Filename" field, enter the S3 URL of the CSV file.

  8. In the "Format" field, select "CSV."

  9. In the "Delimiter" field, enter a semicolon.

  10. In the "Options" field, enter the S3 access key and secret key.

  11. Click "OK" to begin the import process. It may take some time depending on the size of the CSV file.

  12. Once the import is complete, you should see the data in the table in pgAdmin.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-05 10:39:23 +0000

Seen: 11 times

Last updated: Jul 05 '23