Skip to content

How to Migrate from ClickHouse to PostgreSQL

Skippr is the easiest way to migrate from ClickHouse to PostgreSQL and get fully cleansed and modeled data in one run command.

Source: ClickHouse. Destination: PostgreSQL.

Sample config

yaml
skippr:
  workspace: clickhouse_to_postgres
pipelines:
  clickhouse_to_postgres:
    data_source: data_sources.source
    data_sink: data_sinks.warehouse
data_sources:
  source:
    Clickhouse:
      url: "http://localhost:8123"
      database: default
      user: default
data_sinks:
  warehouse:
    Postgres:
      host: localhost
      port: 5432
      user: ${POSTGRES_USER}
      password: ${POSTGRES_PASSWORD}
      database: analytics
      schema: public

Environment

bash
export POSTGRES_HOST="localhost"
export POSTGRES_USER="myuser"
export POSTGRES_PASSWORD="mypassword"

Source connector: clickhouse-source. Destination connector: postgres-warehouse.

See Quick start.