Linking Postgres as a source

Last updated:

|Edit this page

On this page

    The Postgres connector can link your database tables to PostHog.

    To link Postgres:

    1. Go to the data warehouse tab in PostHog
    2. Click Link Source and select Postgres
    3. Enter your database connection details:
      • Host: The hostname or IP your database server like db.example.com or 192.168.1.100.
      • Port: The port your database server is listening to. The default is 5432.
      • 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: The schema for your database where your tables are located. The default is public.
    4. Click Link

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

    Inbound IP addresses

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

    USEU
    44.205.89.553.75.65.221
    44.208.188.17318.197.246.42
    52.4.194.1223.120.223.253

    Questions?

    Was this page useful?

    Next article

    Linking S3 as a source

    The data warehouse can link to data in your object storage system like S3. To start, you'll need to: Create a bucket in S3 Set up an access key and secret Add data to the bucket (we'll use Airbyte) Create the table in PostHog Step 1: Creating a bucket in S3 Log in to AWS . Open S3 in the AWS console and create a new bucket. We suggest us-east-1 if you're using PostHog Cloud US, or eu-central-1 if you're using PostHog Cloud EU. Make sure to note both the name and region of your bucket, we…

    Read next article