# PostgreSQL Adapter

## Connection Requirements

{% stepper %}
{% step %}

### IP

Postgre SQL Server IP Address.
{% endstep %}

{% step %}

### Port

Port number (optional, default: 5432).
{% endstep %}

{% step %}

### Domain

Domain FQDN.
{% endstep %}

{% step %}

### Database

Base database.
{% endstep %}

{% step %}

### Username

Value provided username in Postgre SQL server.

{% hint style="info" %}
🔵 "Read"\
The user must have "Select" and "List" privileges.
{% endhint %}
{% endstep %}

{% step %}

### Password

The Password of the provided username.
{% endstep %}

{% step %}

### View Name

The view name of Postgre SQL Server. (required).

{% hint style="info" %}
🔵 View\
OctoXLabs needs a for integration. In this view, the name of the column with the hostname must be Hostname. You can add the remaining fields as you wish.
{% endhint %}
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
⚠️ Attention\
Please perform a **connection test** to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# 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.octoxlabs.com/adapters/adapters/postgresql-adapter.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.
