# PostgreSQL

Apica Ascent lets you connect to your PostgreSQL easily and provides a rich Query editor to **Query your PostgreSQL** using its natural syntax.

All your queried results are cached, so you don't have to wait for the same result set every time, also Apica Ascent helps you to visualize your data gathered from queries.

### Adding PostgreSQL to Apica Ascent

The first step is to create a PostgreSQL data source and provide all details such as the Host, Port, User, Password, and Database name of your PostgreSQL

![Choosing a new data source](/files/oWSt4ygvlNs3zj0pYqly)

<figure><img src="/files/VCMpMdViC0HssK35RQgc" alt="Adding datasource to Ascent"><figcaption><p>Adding data source to Ascent</p></figcaption></figure>

### Querying your data

The next step is to Navigate to the Query editor page and start Querying your data from your PostgreSQL schemes

![Query Editor](/files/sAZumVCdnrIJ4xBG6edq)


---

# 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://docs.apica.io/data-sources/sql-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.
