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.
- **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 → My Access**
2. Find the account and click **Launch → 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)