Use PostgreSQL to query and modify rows, execute SQL, and inspect tables, columns, keys, and indexes. Schema inspection lets a workflow discover the database structure before generating a query.
Connection setup
In Integrations, add a connection with the host, port, database, username, password, and transport-security settings. Sim proves the connection with SELECT 1 before saving it encrypted, then reads it on the server for each run; the block, the workflow, and agents never see the password. Reconnect the connection from Integrations when its credentials change. The runtime must be able to reach the database host.
- Preferred encrypts when the server offers TLS and otherwise connects without it. An attacker on the network can force that fallback, so choose Required when the server supports TLS.
- Required always encrypts but does not verify the server certificate, like libpq's
sslmode=require. - Disabled never encrypts. Use it only on a network whose confidentiality you control.
Workflows built before saved connections keep their inline connection fields and run unchanged.
Use the block
Query or modify PostgreSQL rows, execute SQL, and inspect tables, columns, keys, and indexes.
Actions
PostgreSQL Query
Execute a SELECT query on PostgreSQL database
PostgreSQL Insert
Insert data into PostgreSQL database
PostgreSQL Update
Update data in PostgreSQL database
PostgreSQL Delete
Delete data from PostgreSQL database
PostgreSQL Execute
Execute raw SQL query on PostgreSQL database
PostgreSQL Introspect
Introspect PostgreSQL database schema to retrieve table structures, columns, and relationships