Retool × PostgreSQL

Does Retool integrate with PostgreSQL?

Yes — native integration

Yes. PostgreSQL is one of Retool's native resource types. You create a PostgreSQL resource, enter the host, port, database, and credentials, optionally enable SSL or an SSH tunnel, test the connection, and start querying. Retool supports both SQL reads and GUI-based writes against the database.

Integration methodNative — PostgreSQL is a first-class, built-in Retool resource type. You create a PostgreSQL resource, supply connection credentials, and query it in SQL (read) or GUI (insert/update/delete) mode. No middleware is involved.
Sync directionTwo-way: Retool supports SQL mode for reads and GUI mode for write operations (insert, update, delete) against the database.
Plan requiredNo paid plan required to add a PostgreSQL resource. Self-hosted and cloud Retool both include it. Paid tiers add features like AWS IAM authentication and outbound region/static-IP controls.
Setup time~10 minutes unverified estimate

How to connect Retool to PostgreSQL

  1. In Retool, open Resources and click "Create new" → "Resource", then select the PostgreSQL tile.
  2. Name the resource and enter the connection credentials: host, port (default 5432), database name, username and password.
  3. If the database isn't publicly reachable, enable the SSH tunnel option; for encrypted connections, enable SSL and supply CA/client certificates as needed.
  4. Click "Test connection" to confirm Retool can reach the database (allowlist Retool's outbound IPs on your firewall if the test fails).
  5. Click "Create resource", then build queries in an app — SQL mode for reads, GUI mode for inserts, updates and deletes.

Known friction points

FAQ

Does Retool integrate with PostgreSQL?
Yes, natively. PostgreSQL is a built-in Retool resource type. You create a PostgreSQL resource with your connection credentials, test it, and then query the database directly — SQL mode for reads, GUI mode for inserts, updates and deletes. No middleware required.
Can Retool write to a PostgreSQL database, or only read?
Both. Retool supports SQL queries for reading and a GUI mode for write operations (insert, update, delete) against PostgreSQL resources.
Do I need a paid Retool plan to connect to PostgreSQL?
No. Adding a PostgreSQL resource works on free and self-hosted Retool. Paid tiers add features such as AWS IAM authentication and outbound region controls, but they aren't required for a basic connection.
✓ Last verified: 2026-06-10  ·  Every claim on this page links to a primary source. If the integration changed, the page is out of date — check the sources below.

Sources

Related questions