# PostgreSQL + ClickHouse

> Automatically sync PostgreSQL tables to ClickHouse with incremental loading. Start your free 14-day trial.

Source: https://www.erathos.com/en/pipelines/postgresql-clickhouse
Em português: https://www.erathos.com/pipelines/postgresql-clickhouse

PostgreSQL is a widely used open-source relational database management system in enterprise applications. ClickHouse, on the other hand, is a serverless Big Data solution developed by Google, providing robust storage and analytical capabilities for large-scale data.

With Erathos, you can integrate data from PostgreSQL to ClickHouse in just a few minutes. Our platform handles the entire data movement process to your analytical environment, allowing data to be blended with other sources in your Data Warehouse. This way, your time is focused on what actually drives value — extracting valuable insights and making more data-driven decisions.

### What PostgreSQL data does Erathos sync to ClickHouse?

The integration automatically syncs key PostgreSQL objects:

- **Selected tables** — incremental replication of any configured table
- **Schema drift** — new columns are automatically detected and added to the destination
- **Primary keys and timestamps** — used for efficient incremental syncs
- **Historical data** — full initial load followed by incremental updates

### Why sync PostgreSQL with ClickHouse?

In ClickHouse, you run OLAP queries on PostgreSQL data in milliseconds, making it ideal for high-concurrency dashboards and high-volume time-series data.

### How it works

Erathos connects to PostgreSQL via the official API and syncs your data incrementally — only new or updated records are processed in each run, keeping pipelines fast and ClickHouse costs predictable. You choose the sync frequency (from every 5 minutes to daily), the objects to sync, and the destination dataset. Every run is logged with full observability: runtime, rows processed, errors with context, and instant alerts via Slack or email if anything goes wrong.

## Data in your data warehouse in minutes

### Out-of-the-box PostgreSQL connector

Replicate PostgreSQL tables to ClickHouse with incremental sync and automated schema drift detection — keeping your pipelines running even when the table structure changes.

### Full control over your PostgreSQL pipelines

Configure frequency and sync mode on a per-table basis. Data lands in ClickHouse optimized for OLAP queries, delivering millisecond-level analytics even across millions of rows.

### End-to-end observability

Stop discovering PostgreSQL issues only after the business team starts complaining. Every run is logged with execution time, processed rows, and error context. Get automatic alerts via Slack, Discord, or email the moment something goes off track — keeping replication up to date without putting your transactional database at risk.

## Centralizing data from PostgreSQL to ClickHouse has never been this simple

Erathos is a data ingestion platform for teams that need to replicate operational databases for analytics. With the PostgreSQL connector, you can incrementally sync tables and transactional records to ClickHouse — featuring schema drift detection and comprehensive execution logs.

## FAQ

### What is Erathos and how can it help my company?

Erathos is a data ingestion platform built for reliability, transparency, and control. We help data teams connect tools like PostgreSQL to their data warehouse — with complete observability for every run, zero maintenance, and without the opacity of traditional tools on the market.

### How does Erathos sync data from PostgreSQL to ClickHouse?

Erathos uses incremental replication to sync tables from PostgreSQL to ClickHouse. Schema drift is automatically detected — if a column is added or modified in PostgreSQL, the pipeline adapts without manual intervention.

### How often does Erathos sync data from PostgreSQL to ClickHouse?

You can configure the sync frequency from every 5 minutes to daily, at the table level. Erathos uses incremental syncs — only new or updated records are processed in each run, keeping your PostgreSQL pipeline efficient and ClickHouse costs predictable.

### What happens if a PostgreSQL sync fails?

Erathos automatically detects failures and sends alerts to your email, Slack, or Discord with full context — not just "job failed." Smart retries handle transient errors, and every run is logged with runtime, rows processed, and error context so your team can debug in minutes, not hours.

### Is there a free trial period for the PostgreSQL connector?

Yes. Every Erathos connector includes a 14-day free trial. Connect PostgreSQL to ClickHouse and start syncing immediately — no credit card required.
