Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Working with Node.js
      • Node.js Behavior in Heroku
      • Troubleshooting Node.js Apps
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Model Context Protocol
    • Vector Database
    • Heroku Inference
      • Inference Essentials
      • AI Models
      • Inference API
      • Quick Start Guides
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Integrating with Salesforce
  • Connecting Heroku Postgres to Salesforce Data Cloud

Connecting Heroku Postgres to Salesforce Data Cloud

English — 日本語に切り替える

Last updated March 03, 2025

Table of Contents

  • Use Cases
  • Heroku PostgreSQL Connector
  • Considerations
  • Next Steps

Salesforce Data Cloud is a data platform that enables customers to organize and unify data across Salesforce and other external data sources. Sync your Heroku Postgres data with your Salesforce Data Cloud instance so you can create unified customer profiles and act on your data. This article describes how to integrate your Heroku Postgres database with Data Cloud.

Use Cases

You can develop customer-facing apps on Heroku and unify your Postgres data with Data Cloud.

  • Unified customer profile: You can combine data from your Heroku apps with data in Data Cloud and build unified customer profiles. Unified profiles bring a customer’s web engagement, order history, and content preferences all in one place. You can understand your customers and make targeted recommendations for increased customer engagement.
  • Automate customer engagement: By syncing data from Heroku Postgres to Data Cloud, you can create automations based on how your customers interact with your app. Depending on a customer’s interactions, you can automate sending personalized marketing campaigns, identifying potential opportunities, or creating cases in Salesforce.

Heroku PostgreSQL Connector

The Heroku PostgreSQL connector is included in the Salesforce Data Cloud suite of connectors. The connector provides a one-way sync from Heroku Postgres to Data Cloud. Follow the Salesforce documentation for setting up a PostgreSQL connection with Heroku Postgres. In the Source tab of the Add Connection window, select Heroku PostgreSQL.

Image: Add Connection window

Before setting up the connector, keep in mind:

  • Use at least a premium-4 plan for setting up the connection.
  • A connection counts against your database connection limit.
  • Consider creating a credential specific for Data Cloud so you only grant access to specific tables necessary for the integration.

You need your database credentials when setting up the connection:

  • Username: User or username from your database credentials
  • Password: Password or password from your database credentials
  • Connection URL: Host or host from your database credentials
  • Schema: enter public
  • Database: Database or dbname from your database credentials

Image: New Heroku PostgreSQL Source

You can find your credentials through the Credentials tab on a Postgres database through data.heroku.com or by running the pg:credentials:url command.

$ heroku pg:credentials:url DATABASE --name analyst -a example-app
Connection information for analyst credential

Connection info string:
   "dbname=dee932clc3mg8h host=ec2-123-73-145-214.compute-1.amazonaws.com port=6212 user=analyst password=98kd8a9 sslmode=require"

Connection URL: postgres://analyst:98kd8a9@ec2-123-73-145-214.compute-1.amazonaws.com:6212/dee932clc3mg8h

After setting up a connection, you can create a data stream to your Postgres data source. A data stream brings in data from a table in your database to create a data lake object (DLO) in Data Cloud. You can configure the data stream to update data in batches or in real-time. Under Other Sources of the New Data Stream window, select Heroku PostgreSQL.

Image: New Data Stream window

Considerations

  • Read the Salesforce docs for the Data Cloud Limits and Guidelines.
  • Data Cloud regions are available in Virginia, United States, Frankfurt, Germany, Mumbai, India, Sydney, Australia, and Tokyo, Japan.

Next Steps

With your Heroku Postgres data synced in Data Cloud, you can act on the data by creating calculated insights for analytics, triggering flows to automate processes, creating data actions for event-based orchestrations, and more.

For more information, here’s some recommended reading:

  • Data Cloud Features and Learning Path

Keep reading

  • Integrating with Salesforce

Feedback

Log in to submit feedback.

Using the Salesforce REST API with Heroku Integrating Heroku and the Salesforce Platform Overview

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices