Skip to content

Fix: handle NULL values in pg_settings.short_desc for Postgres Pro Enterprise#1235

Open
dimasikpower wants to merge 1 commit intoprometheus-community:masterfrom
dimasikpower:fix-null-short_desc-issue-1186
Open

Fix: handle NULL values in pg_settings.short_desc for Postgres Pro Enterprise#1235
dimasikpower wants to merge 1 commit intoprometheus-community:masterfrom
dimasikpower:fix-null-short_desc-issue-1186

Conversation

@dimasikpower
Copy link

Fixes #1186

Problem

Postgres Pro Enterprise 16.6 has NULL values in pg_settings.short_desc for parameters:

  • replan_enable
  • replan_show_signature

This causes exporter to crash with error:

- Added COALESCE(short_desc, '') to handle NULL values in pg_settings query
- Fixes compatibility with Postgres Pro Enterprise 16.6+
- Resolves issue prometheus-community#1186
@sysadmind
Copy link
Contributor

This is failing on the DCO - you need to sign off on the commit
https://github.com/prometheus-community/postgres_exporter/pull/1235/checks?check_run_id=58932350069

@ashwani-opstree
Copy link

Is there any update regarding this issue? We are experiencing the same issue too.

@sysadmind
Copy link
Contributor

@dimasikpower Can you fix the DCO and rebase? I think it can be merged once that is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error Scan error on column index 3, name \"short_desc\": converting NULL to string is unsupported

3 participants