# PostgreSQL - handle postgre version in extension

**URL:** <https://community.dynatrace.com/t/postgresql-handle-postgre-version-in-extension/48343>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [October 15, 2024, 3:10pm UTC](https://community.dynatrace.com/t/postgresql-handle-postgre-version-in-extension/48343 "2024-10-15T15:10:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicomon02](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@Nicomon02](https://community.dynatrace.com/u/Nicomon02)\
**Post date:** [October 15, 2024, 3:10pm UTC](https://community.dynatrace.com/t/postgresql-handle-postgre-version-in-extension/48343/1 "2024-10-15T15:10:40Z")

</div>

Some queries executed by PostgreSQL extension are reporting errors while they are trying to get value from non-existing columns in differents version of PostgreSQL databases.

This behavior generate a huge amount of logs, and create incident on production activity.

it would be better to check the version before and then send proper queries regarding curent version of databases.

It will avoid to generate many logs.

exemple : queries on “total\_time” column.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 15, 2024, 4:47pm UTC](https://community.dynatrace.com/t/postgresql-handle-postgre-version-in-extension/48343/2 "2024-10-15T16:47:18Z")

</div>

Hi,

It is a limitation on our data source, please raise it as a product idea to have our data sources handle conditional queries.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 16, 2024, 1:44pm UTC](https://community.dynatrace.com/t/postgresql-handle-postgre-version-in-extension/48343/3 "2024-10-16T13:44:49Z")

</div>

Hello&nbsp;[@Nicomon02](https://community.dynatrace.com/user/47230)

Regarding the raised concern, kindly find the below info:

 ![2024-10-16_17h27_36.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c70740ba87ed9f7695874d6be260ed53f623ab1e.png)

- For detailed info about [PostgreSQL](https://www.dynatrace.com/hub/detail/postgresdb-remote-monitoring/?query=postgresql&filter=all)

**There is alternative solution:**

- **[custom-database-extension](https://www.dynatrace.com/hub/detail/custom-database-extension/?query=database+extension&filter=all)&nbsp;according to current version of PostgreSQL, it supports PostgreSQL.**

 ![2024-10-16_17h38_27.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9f415f9e0da284e00b3c94e8c1cb5a729102431b.png)

**In case you have tried all these attempts, then:**

1. Reach out to Dynatrace support team via live chat or raise a support ticket.
2. Share the detailed scenario, if possible include screenshots and logs with Dynatrace on&nbsp;[DynatraceProductIdeas](https://community.dynatrace.com/category/DynatraceProductIdeas)

KR,

Peter.

---

<div class="post-metadata">

**Author:** ![Joseph\_Hobbs](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joseph_hobbs/32/34284_2.png) [@Joseph\_Hobbs](https://community.dynatrace.com/u/Joseph_Hobbs)\
**Post date:** [February 23, 2026, 9:28pm UTC](https://community.dynatrace.com/t/postgresql-handle-postgre-version-in-extension/48343/4 "2026-02-23T21:28:23Z")

</div>

We ran into this situation as well…&nbsp; I’ve submitted an idea to address this concern…

[https://community.dynatrace.com/t5/Product-ideas/Reduce-errors-generated-by-PostgreSQL-extension/idi-p/295146](https://community.dynatrace.com/post/295146)
