PlanetScale Postgres
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.

Connect PlanetScale Postgres to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your PlanetScale Postgres credentials to pull your data into the PostHog Data warehouse.
Configuration
| Option | Description |
|---|---|
Connection string (optional)Type: text Required: False | |
HostType: text Required: True | In the PlanetScale dashboard, open your database and click Connect to create a role and read its connection details. Use the host it shows, which looks like |
PortType: number Required: True | Use |
DatabaseType: text Required: True | |
UserType: text Required: True | PlanetScale usernames carry the branch id, so they look like |
PasswordType: password Required: True | |
SchemaType: text Required: False |
Linking PlanetScale Postgres to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select PlanetScale Postgres
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import