Skip to content

How to Migrate from PostgreSQL to Google BigQuery

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

Source: PostgreSQL. Destination: BigQuery.

Sample config

yaml
skippr:
  workspace: postgres_to_bigquery
pipelines:
  postgres_to_bigquery:
    data_source: data_sources.source
    data_sink: data_sinks.warehouse
data_sources:
  source:
    Postgres:
      host: localhost
      port: 5432
      user: myuser
      password: mypass
      database: mydb
data_sinks:
  warehouse:
    Bigquery:
      project: my-gcp-project
      dataset: raw_data
      location: US

Environment

bash
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"

Source connector: postgres. Destination connector: bigquery.

See Quick start.