docs/documentation/platform/pam/accounts/postgresql.mdx
PostgreSQL accounts let you manage access to your PostgreSQL databases. Users connect through Web Access (a browser-based interface) or CLI (a local proxy), and every session can be recorded.
| Field | Description |
|-------|-------------|
| **Name** | A descriptive name (e.g., `orders-db-readonly`) |
| **Host** | Database hostname or IP |
| **Port** | PostgreSQL port (default: 5432) |
| **Database** | Database name |
| **SSL Enabled** | Enable SSL for the connection |
| **Reject Unauthorized** | Reject connections with invalid certificates (only if SSL enabled) |
| **SSL Certificate** | Custom CA certificate (only if SSL enabled) |
- **Data Explorer** — browse tables, view data, filter and sort, edit rows, export to CSV/JSON
- **SQL Editor** — write and run SQL queries, use transactions
To connect:
1. Go to **Privileged Access Management → Accounts**
2. Find the account and click the rocket icon (or select **Launch Session** from the menu)
3. Click **Connect in Browser**
```bash
infisical pam access backend-team/orders-db
```
The command outputs the local port to connect to. Then use your PostgreSQL client:
```bash
psql "postgresql://localhost:<port>/orders"
```
No password needed since the proxy handles authentication.
**Flags:**
- `--port <port>` — use a specific local port (otherwise one is assigned automatically)
- `--reason <reason>` — provide an access reason (if required by template)