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 across all schemas on the instance:

-- 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
HostHostname or IP address of your PostgreSQL server
PortDatabase server port (default: 5432)
UsernameThe read-only user you created (e.g., reeflow_reader)
PasswordPassword for the database user
SSLEnable SSL/TLS encryption for the connection
DatabaseDefault database queries are issued against
SchemaOptional default schema. Defaults to public when omitted.

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, Username, 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.