Linking Redshift as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

The Redshift connector can link your database tables to PostHog.

To link Redshift:

  1. Go to the Data pipeline page and the sources tab in PostHog
  2. Click New source and select Redshift
  3. Enter your database connection details:
    • Host: The hostname or IP of your Redshift cluster like my-cluster.abc123.us-east-1.redshift.amazonaws.com.
    • Port: The port your Redshift cluster is listening on. The default is 5439.
    • Database: The name of the database you want like analytics_db.
    • User: The username with the necessary permissions to access the database.
    • Password: The password for the user.
    • Schema: (Optional) The schema for your database. Leave blank to browse and sync tables from all schemas, or specify one to limit the selection. The default is public.
  4. Click Next

The data warehouse then starts syncing your Redshift data. You can see details and progress in the sources tab.

Permissions: The Redshift source only requires read permissions on the schemas and tables you intend to sync.

Configuration

OptionTypeRequired
Connection string (optional)textNo
HosttextYes
PortnumberYes
DatabasetextYes
UsertextYes
PasswordpasswordYes
SchematextNo
Use SSH tunnel?ssh-tunnelNo

Selecting columns

By default, PostHog syncs all columns from each table. To sync only specific columns:

  1. During source setup, click Columns next to any table in the table picker.
  2. Uncheck columns you don't want to sync.
  3. Primary key columns and the incremental sync field (if configured) are always synced and cannot be disabled.

You can also change column selection after setup:

  1. Go to the sources tab and click your Redshift source.
  2. Click Configure next to any schema.
  3. Under Columns, select which columns to sync.
Adding columns to existing syncs

When you add columns to a schema using incremental or append sync, PostHog prompts you to choose:

  • Sync forward only - New columns are populated only for future data. Existing rows show NULL for the new columns.
  • Full resync - Triggers a complete resync to backfill the new columns for all rows.

Inbound IP addresses

We use a set of IP addresses to access your instance. To ensure this connector works, add these IPs to your inbound security rules:

USEU
44.205.89.553.75.65.221
52.4.194.12218.197.246.42
44.208.188.1733.120.223.253

Community questions

Was this page useful?