> For the complete documentation index, see [llms.txt](https://docs.datasentinel.io/manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasentinel.io/manual/implementation/agent-usage/release-notes.md).

# Release Notes

All releases are cumulative. Upgrading to the latest version includes all previous changes, so it's sufficient to install or run only the most recent release.

## :label: v4.0.0

*<mark style="color:blue;">Nov 02, 2026</mark>*

### Changes

> * **Internal function**\
>   The agent uses the optional [`datasentinel_analytics` function](https://docs.datasentinel.io/manual/getting-started/postgresql-clusters/internal-function.md) when it is installed in a database. It collects table and index bloat estimates every hour, and column and extended statistics once a day per connection. The SQL file and the `deploy_datasentinel_function.sh` and `remove_datasentinel_function.sh` scripts ship in the agent package.
> * **Richer table and index metadata**\
>   Table and index sizes, and the columns of each index, are now collected.
> * **Collected parameters**\
>   The agent sends the full list of PostgreSQL parameters, including the Write-Ahead Log settings. It is sent at the first collection, once a day, and whenever a parameter changes.
> * **On-demand endpoints for real-time analyses**\
>   New endpoints return the current execution plan of a query, the progress of maintenance operations (vacuum, analyze, index creation, cluster, copy) and the live metrics of one table. They are used by [AI Connector](https://docs.datasentinel.io/ai-connector).
> * **Hourly upload spread**\
>   Hourly metrics are uploaded after a short random delay, so that agents do not all send at the same time.
> * **Table monitoring limit**\
>   The default `tables-monitoring-limit` is raised from 1000 to **5000**. Agents still using the former default of 1000 are moved to 5000.
> * **Query monitoring filters for agentless instances**\
>   `query-monitoring-min-calls` and `query-monitoring-min-time` can now be set once for all agentless instances, in the `agent` section of the backend configuration file. Refer to [Backend configuration](https://docs.datasentinel.io/manual/implementation/platform-usage/configuration/backend.md#agentless-agents).
> * Updated third-party libraries to address known security vulnerabilities.

### Fixes

> * **Query texts and execution plans stored intact**\
>   Double quotes in query texts and plans were replaced by single quotes, which changed the meaning of the SQL. A text ending with a backslash was rejected by the platform. Texts are now stored exactly as collected.
> * **Agentless: empty `agent` section**\
>   An `agent` section left empty in the backend configuration file prevented the agentless agents from starting. The section is now ignored and the default values are used.

## :label: v3.9.3

*<mark style="color:blue;">May 25, 2026</mark>*

### Changes

> * **Local agents** upload through the nginx HTTPS proxy.
> * Extensive **DEBUG** tracing of the query-text / execution-plan pipeline (observability only, no behavioral change).
> * **HTTP 204** accepted as a success status on metric writes.

## :label: v3.9.2

*<mark style="color:blue;">May 21, 2026</mark>*

### Fixes

> * **Empty tag handling**\
>   The agent now automatically strips empty tags before transmission. Previously, an empty tag could occasionally be sent to the platform, causing an insertion error in the metrics database.
> * **Application name sanitization**\
>   The `application_name` value retrieved from [`pg_stat_activity`](https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW) is automatically added as a tag, but could sometimes contain special formats, that triggered an insertion error in the metrics database. The agent now strips any content enclosed in parentheses before transmitting the tag.

## :label: v3.9.0

*<mark style="color:blue;">Feb 02, 2026</mark>*

### Changes

> * Allows switching from an MD5-based query identifier to PostgreSQL’s native `queryid`.\
>   [Refer to the documentation](https://docs.datasentinel.io/manual/features/tips-and-hints/query-identifier.md) for more details.
> * Added the `DATASENTINEL_FOREGROUND` environment variable to facilitate [automatic startup via a systemd service](https://docs.datasentinel.io/manual/implementation/troubleshooting/unexpected-agent-termination.md).

## :label: v3.8.0

*<mark style="color:blue;">Nov 12, 2025</mark>*

### Changes

> * Fully compatible with the newest release, [PostgreSQL Version 18.](https://www.postgresql.org/docs/18/index.html)
> * Updated third-party libraries.

### Fixes

> **Solaris Compatibility for `system_stats` Extension:**\
> Resolved an issue where the current [system\_stats](https://github.com/EnterpriseDB/system_stats) extension running on Solaris systems was missing certain metric fields.

## :label: v3.7.0

*<mark style="color:blue;">Jun 9, 2025</mark>*

### Changes

> The agent now includes the **PostgreSQL listening port** in the metadata it sends to the repository. This enables the repository to track database connection endpoints.

### Fixes

> * **Extension Compatibility Update:**\
>   The agent now detects the version of the [pg\_store\_plans extension](https://docs.datasentinel.io/manual/getting-started/postgresql-clusters/extensions/pg_store_plans.md) and adjusts its queries accordingly. It automatically runs the appropriate query to collect metrics based on the detected version.\
>   This ensures compatibility with [version 1.9](https://github.com/ossc-db/pg_store_plans) (related to [PostgreSQL 17](https://www.postgresql.org/docs/17/index.html)), which includes renamed columns.

## :label: v3.6.0

*<mark style="color:blue;">Oct 15, 2024</mark>*

### Changes

> * Fully compatible with the newest release, [PostgreSQL Version 17.](https://www.postgresql.org/docs/17/index.html)
> * Replaced WSGI CherryPy, a web framework, with Uvicorn, an ASGI web server optimized for handling asynchronous requests.\
>   The agent now includes a **hard-coded limit** for the maximum size of the `api_calls.log` file. The log file **cannot exceed 10MB**, ensuring better management of disk usage and avoiding unbounded growth
> * Updated third-party libraries.
> * Internal memory management improvements

## :label: v3.5.2

*<mark style="color:blue;">Apr 10, 2024</mark>*

### Changes

> * Fully compatible with the newest release, [PostgreSQL Version 16.](https://www.postgresql.org/docs/16/index.html)
> * Updated third-party libraries.
> * Send any issues encountered during instance monitoring directly to the platform.

#### Fixes

> Error occurred with **archive\_mode** set to **always.**

## :label: v3.5.1

*<mark style="color:blue;">Mar 20, 2024</mark>*

#### Fixes

> Every query text is now automatically converted to UTF-8 format before sending to our platform, sidestepping issues with non-ASCII characters like accents

## :label: v3.5.0

*<mark style="color:blue;">Jan 22, 2024</mark>*

#### Changes

> Fully compatible with the newest release, [PostgreSQL Version 16.](https://www.postgresql.org/docs/16/index.html)\
> Updated third-party libraries.\
> Send any issues encountered during instance monitoring directly to the platform.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.datasentinel.io/manual/implementation/agent-usage/release-notes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
