Skip to content
Reeflow
Start Building

PostgreSQL

Connect to PostgreSQL databases, including managed services like Neon, Supabase, and Amazon RDS.

Before creating a connection, you need:

  1. A PostgreSQL database that is publicly accessible from the internet
  2. A database user with read permissions on the tables you want to query

For security, create a dedicated read-only user for Reeflow rather than using an admin account. This limits the potential impact if credentials are compromised.

PostgreSQL 14 introduced the pg_read_all_data role, which grants read access to all tables regardless of which user creates them:

-- Create the user
CREATE USER reeflow_reader WITH PASSWORD 'your-secure-password';
-- Grant read access to all data
GRANT pg_read_all_data TO reeflow_reader;

When creating a PostgreSQL connection in Reeflow, provide the following:

FieldDescription
HostDatabase server hostname or IP address
PortDatabase server port (default: 5432)
DatabaseName of the database to connect to
UserThe read-only user you created (e.g., reeflow_reader)
PasswordPassword for the database user
SSLEnable SSL/TLS encryption for the connection

Create a PostgreSQL connection

Add a PostgreSQL database as a data source in Reeflow.

Navigate to Connections in the main navigation, then click New Connection.

Enter a Name for the connection and an optional Description.

Select PostgreSQL as the connection type.

Enter your database Host, Port, Database name, User, and Password. Enable SSL for production databases.

Click Test Connection to verify your credentials are correct.

Click Create Connection to save. The connection appears in your connections list.