Skip to content

PostgreSQL Credential - Database Connection

A PostgreSQL credential allows your workflows to execute SQL queries, read and write data in a PostgreSQL database. It is used with SQL query nodes.


FieldDescriptionExample
HostDatabase server addressdb.example.com or localhost
UserDatabase usernamepostgres
PasswordUser passwordmy_password
DatabaseDatabase namemy_database
PortConnection port (default: 5432)5432
SSLEnable SSL encryption for the connectiontrue

Host: localhost or 127.0.0.1
Port: 5432
User: postgres (or your user)
Password: the password you set when installing PostgreSQL
Database: your database name

Amazon RDS:

  1. Go to AWS Console > RDS > Your instance
  2. Copy the Endpoint (this is the Host)
  3. Default port is 5432
  4. Use the username and password you set when creating the instance

Supabase:

  1. Go to your project on supabase.com
  2. Navigate to Settings > Database
  3. Copy the direct connection details

Railway / Render / Heroku:

  1. Go to the database section of your project
  2. Look for the connection string or individual details
  3. Copy host, user, password, database, and port

  • Cloud services: Generally require SSL enabled (true)
  • Local database: Generally doesn’t need SSL (false)
  • For connections with custom SSL certificates, use the PostgreSQL SSL credential

  • Verify the host and port are correct
  • Make sure the database accepts remote connections (check pg_hba.conf)
  • Check that the firewall allows connections to port 5432
  • Verify username and password
  • Make sure the user has permissions on the specified database
  • Enable the SSL option in the credential
  • Some cloud providers require SSL mandatorily