# PostgreSQL

From the top navigation bar click on the ![](https://1648695648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygZlXb1uCVgursV03Kgn%2Fuploads%2FbCEJQ2HTj8OOiqP0FTW1%2Fimage.png?alt=media\&token=441c66ea-bf56-4263-bae3-7b4899e52c1f) icon.

Choose the **Connection strings** tab.

Click the **Add** button.

Enter the Name of your connection.

Select **PostgreSQL** from the Connection type.

Enter your connection string.&#x20;

1. **Hostname:** where your database is hosted&#x20;

{% hint style="info" %}
You can paste the host url in the Host box to connect to your database quickly
{% endhint %}

2. **Port:**&#x20;

* The port the database server uses
* For example, the default port number for PostgreSQL is 5432&#x20;

3. **Database:** name of your database&#x20;
4. **User:** username of the Database you want to connect&#x20;
5. **Password:** password of the Database you wish to connect

Click **Next** then Click the **Complete** button to establish your Connection.

<figure><img src="https://1648695648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygZlXb1uCVgursV03Kgn%2Fuploads%2FcXcESzmbSrjc0qlN7q0t%2Fconnect.gif?alt=media&#x26;token=ef24de1a-ffd4-4ac3-93c8-c7619603f677" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://doc.dataflake.co/data-sources/postgresql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
