> For the complete documentation index, see [llms.txt](https://docs.e6data.com/query-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.e6data.com/query-engine/reference/connectivity-reference/postgresql-protocol-parameters.md).

# PostgreSQL protocol parameters

Reference for connecting to e6data over the PostgreSQL wire protocol - host, port, database encoding, and SSL.

e6data speaks the PostgreSQL wire protocol on port `5432` (TLS), so a stock PostgreSQL client connects with no e6data driver. The routing is encoded in the database name. For setup, see [PostgreSQL protocol](/query-engine/developers/connecting-to-the-engine/postgresql-protocol.md).

## Connection parameters

| Parameter | Value                                                                                                  |
| --------- | ------------------------------------------------------------------------------------------------------ |
| Host      | `<PG_HOST>` (from **Cluster → Connectivity**)                                                          |
| Port      | `5432`                                                                                                 |
| Database  | `<CLUSTER>/<CATALOG>` - the cluster and catalog, slash-separated                                       |
| User      | your e6data email                                                                                      |
| Password  | a [personal access token](/query-engine/guides/security/access-tokens/pat-and-service-account-keys.md) |
| `sslmode` | `require`                                                                                              |

## Connection-string forms

```bash
# psql
psql "host=<PG_HOST> port=5432 dbname=<CLUSTER>/<CATALOG> user=<EMAIL> sslmode=require"
```

```
# PostgreSQL JDBC driver
jdbc:postgresql://<PG_HOST>:5432/<CLUSTER>/<CATALOG>?user=<EMAIL>&sslmode=require
```

## Behavior

* **Suspended cluster:** the first connection returns SQLSTATE `57P03` ("cluster is being resumed, please retry"); standard drivers retry automatically while the cluster resumes (\~30–90 s).
* **Idle timeout:** PostgreSQL sessions have a 1-hour idle timeout by default.

## See also

* [PostgreSQL protocol](/query-engine/developers/connecting-to-the-engine/postgresql-protocol.md)
* [Connecting to the engine](/query-engine/developers/connecting-to-the-engine.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.e6data.com/query-engine/reference/connectivity-reference/postgresql-protocol-parameters.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
