How to load data from Postgres to Redshift
Learn how to use Airbyte to synchronize your Postgres data into Redshift within minutes.


Building your pipeline or Using Airbyte
Airbyte is the only open source solution empowering data teams to meet all their growing custom business demands in the new AI era.
Building in-house pipelines
- Inconsistent and inaccurate data
- Laborious and expensive
- Brittle and inflexible
After Airbyte
- Reliable and accurate
- Extensible and scalable for all your needs
- Deployed and governed your way
Start syncing with Airbyte in 3 easy steps within 10 minutes



Take a virtual tour
Demo video of Airbyte Cloud
Demo video of AI Connector Builder
Setup Complexities simplified!
Simple & Easy to use Interface
Airbyte is built to get out of your way. Our clean, modern interface walks you through setup, so you can go from zero to sync in minutes—without deep technical expertise.
Guided Tour: Assisting you in building connections
Whether you’re setting up your first connection or managing complex syncs, Airbyte’s UI and documentation help you move with confidence. No guesswork. Just clarity.
Airbyte AI Assistant that will act as your sidekick in building your data pipelines in Minutes
Airbyte’s built-in assistant helps you choose sources, set destinations, and configure syncs quickly. It’s like having a data engineer on call—without the overhead.
What sets Airbyte Apart
Modern GenAI Workflows
Streamline AI workflows with Airbyte: load unstructured data into vector stores like Pinecone, Weaviate, and Milvus. Supports RAG transformations with LangChain chunking and embeddings from OpenAI, Cohere, etc., all in one operation.
Move Large Volumes, Fast
Quickly get up and running with a 5-minute setup that enables both incremental and full refreshes for databases of any size, seamlessly scaling to handle large data volumes. Our optimized architecture overcomes performance bottlenecks, ensuring efficient data synchronization even as your datasets grow from gigabytes to petabytes.
An Extensible Open-Source Standard
More than 1,000 developers contribute to Airbyte’s connectors, different interfaces (UI, API, Terraform Provider, Python Library), and integrations with the rest of the stack. Airbyte’s AI Connector Builder lets you edit or add new connectors in minutes.
Full Control & Security
Airbyte secures your data with cloud-hosted, self-hosted or hybrid deployment options. Single Sign-On (SSO) and Role-Based Access Control (RBAC) ensure only authorized users have access with the right permissions. Airbyte acts as a HIPAA conduit and supports compliance with CCPA, GDPR, and SOC2.
Fully Featured & Integrated
Airbyte automates schema evolution for seamless data flow, and utilizes efficient Change Data Capture (CDC) for real-time updates. Select only the columns you need, and leverage our dbt integration for powerful data transformations.
Enterprise Support with SLAs
Airbyte Self-Managed Enterprise comes with dedicated support and guaranteed service level agreements (SLAs), ensuring that your data movement infrastructure remains reliable and performant, and expert assistance is available when needed.
What our users say

Raman Singh
Predictable, straightforward pricing model that simplified budgeting and significantly reduced overall spend

Chase Zieman

“Airbyte helped us accelerate our progress by years, compared to our competitors. We don’t need to worry about connectors and focus on creating value for our users instead of building infrastructure. That’s priceless. The time and energy saved allows us to disrupt and grow faster.”

Rupak Patel
"With Airbyte, we could just push a few buttons, allow API access, and bring all the data into Google BigQuery. By blending all the different marketing data sources, we can gain valuable insights."
How to Sync to Manually
Step 1: Export Data from PostgreSQL
1. Connect to your PostgreSQL Database:
Use `psql` or any PostgreSQL client to connect to your database.
2. Choose the Data to Export:
Determine which tables or data you want to move to Redshift.
3. Export the Data:
Use the `COPY` command to export the data to a CSV file. For example:
```sql
COPY (SELECT * FROM your_table_name) TO '/path/to/your/output.csv' DELIMITER ',' CSV HEADER;
```
Replace `/path/to/your/output.csv` with the path where you want to save your file and `your_table_name` with the name of the table you're exporting.
4. Compress the Data (Optional):
To save space and upload time, you can compress the CSV file using gzip:
```bash
gzip /path/to/your/output.csv
```
This will create a file named `output.csv.gz`.
Step 2: Prepare Amazon S3
1. Create an S3 Bucket:
- Log in to your AWS Management Console.
- Navigate to the S3 service and create a new bucket.
- Set the name and region for the bucket.
2. Set Permissions:
- Ensure that the bucket has the necessary permissions so that Redshift can access the data.
- You may need to attach an IAM policy to your Redshift cluster's role for access to the S3 bucket.
Step 3: Step 3: Upload Data to Amazon S3
1. Install AWS CLI:
If you haven't already, install the AWS Command Line Interface (CLI) on your machine.
2. Configure AWS CLI:
Run `aws configure` to set up your AWS credentials and default region.
3. Upload the File:
Use the `aws s3 cp` command to upload your data file to the S3 bucket:
```bash
aws s3 cp /path/to/your/output.csv.gz s3://your-bucket-name/
```
Replace `/path/to/your/output.csv.gz` with the path to your compressed file and `your-bucket-name` with the name of your S3 bucket.
Step 4: Copy Data into Amazon Redshift
1. Connect to Your Redshift Cluster:
Use a SQL client that supports Redshift to connect to your cluster.
2. Create a Table:
Create a table in Redshift that matches the schema of the PostgreSQL data you're importing. For example:
```sql
CREATE TABLE your_redshift_table (
column1 datatype,
column2 datatype,
...
);
```
3. Copy Data from S3:
Use the `COPY` command in Redshift to load data from the S3 bucket into your Redshift table:
```sql
COPY your_redshift_table
FROM 's3://your-bucket-name/output.csv.gz'
CREDENTIALS 'aws_iam_role=your-iam-role-arn'
DELIMITER ','
IGNOREHEADER 1
GZIP
REGION 'your-region';
```
Replace `your_redshift_table` with the name of your table in Redshift, `your-bucket-name` with the name of your S3 bucket, `your-iam-role-arn` with the ARN of the IAM role that has access to S3, and `your-region` with the region of your S3 bucket.
4. Verify the Data:
After the `COPY` command has completed, run some queries to verify that the data was imported correctly.
Step 5: Clean Up
1. Remove Temporary Files:
Once you've confirmed the data is in Redshift, you can delete the CSV files from your local machine and the S3 bucket to avoid incurring storage costs.
2. Monitor Your Redshift Cluster:
Check the performance and storage metrics of your Redshift cluster to ensure it handles the new data well.
By following these steps, you can move data from PostgreSQL to Amazon Redshift without the need for third-party connectors or integrations. Always remember to handle credentials and access permissions with care to maintain the security of your data.