Growth Nirvana

Connectors / PostgreSQL

PostgreSQL to BigQuery

Your PostgreSQL tables in BigQuery, changed rows only. Every table of the schemas you choose, read from a read replica or the primary, directly over SSL or through an SSH tunnel. New tables are picked up on their own.

Set it up

In Growth Nirvana

  1. In Growth Nirvana, open Connections, choose Add connection and pick PostgreSQL.
  2. Enter the host, database and the read-only user, and pick direct or SSH tunnel.
  3. Choose the schemas and tables, test the connection, and save.

In PostgreSQL

  • Create a read-only database user for Growth Nirvana (a read replica is best).
  • Allow Growth Nirvana to reach the database, directly over SSL or through an SSH host you add Growth Nirvana's key to.

Or ask your agent

Connect PostgreSQL to my BigQuery with Growth NirvanaGet my Postgres data into BigQuery

How it syncs

Settings

SettingWhat it doesDefault
Database
Port5432
Connection methoddirect: over the internet with SSL. ssh_tunnel: through the SSH host, with the connection's own key.direct
SSH host
SSH port22
SSH user
SSL moderequire
SchemasSchemas whose tables sync (default: public). Tables added later sync on their own.
Only these tablesNames or patterns (table or schema.table, * wildcards). Empty: every table of the schemas.
Never these tablesNames or patterns (table or schema.table, * wildcards). Never read. The default leaves out large log/audit tables and tables that hold secrets (tokens, API keys, connector configs); edit it to sync them, or set it empty to sync every table.versions,elt_events,observability_events,oauth_*,api_client_keys,*_configs,pg_stat_statements*
Replicationxmin (default): tables with a primary key read only the rows changed since the last run. full_table: every row of every table each run. logical: every insert, update and delete through the replication slot and publication (pgoutput).xmin
Publication namelogical only: the tables it publishes sync.
Deleted-row check (hours)How often each table's keys are read to mark rows deleted in the source (0: never). Keep it on: app databases often delete rows outright.24

Tables

You choose the tables when you set up the connection, so their columns are your own.

Machine-readable: /api/connectors/postgresql.json · Guide: Connect PostgreSQL to BigQuery