

Just change the query, and the file extension, and leave it as text format. You could also do json_agg in postgres and dump as a single JSON file with objects in an array, it's up to you, really.

I can't get the relevant info without a join on that table. But I don't believe it should be that slow to read. I understand that the table is large and that is affecting the performance. I'm a noob when it comes to optimizing SQL and databases. So you can dump a whole table to a JSONL file, for example. Looking at the AWS monitoring, Freeable memory stays at 5GB. JSONL is JSON, with a single JSON object per line: In that S3 bucket, include a JSON file that describes the mapping between the data and the database tables of the data in those files. To do this, provide access to an S3 bucket containing one or more data files. An Oracle to Amazon Aurora PostgreSQL-Compatible Edition or Amazon Relational Database Service (Amazon RDS) for PostgreSQL migration into the AWS Cloud can be a multistage process with different technologies and skills involved, starting from the assessment stage to the cutover stage. Here's an example query to create JSONL for you. AWS DMS (S3 as a source) AWS DMS can read data from source S3 buckets and load them into a target database. I just tested with 3.3.1, from September 17, 2020, and the issue isn't present, so, anyone who wants a way to dump data from Postgres to S3. I would not recommend using 3.1.0/11.6, however, there is a bug that causes data corruption issues after 10MB of data is exported to S3: This has been present since Aurora for Postgres since 3.1.0 which was released on Febru(I don't know why this URL says 2018):

This can be done natively with a Postgres extension if you're using AWS Aurora Postgres 11.6 or above via: aws_s3.export_query_to_s3Įxporting data from an Aurora PostgreSQL DB cluster to Amazon S3 This is an old question, but it comes up when searching for "aws_s3.export_query_to_s3", even though there is no mention of it here, so I thought I'd throw another answer out there.
