Skip to content

PostgreSQL 17 support for zabbix-server-pgsql (all flavors) #1572

@neothematrix

Description

@neothematrix

hello!
I've just updated zabbix-server-pgsql container to zabbix 7.0.6 and I tried upgrading my postgresql from 16 to 17 (it's actually a postgres with timescaledb extension provided by timescaledb, but it shouldn't be too different).

After upgrading to Postgres 17, I'm not able to start zabbix-server-pgsql container anymore, with this error repeated in the container logs:

**** PostgreSQL server is not available. Waiting 5 seconds...

upon inspecting a little bit more, this is a message generated by the docker-entrypoint.sh when trying to test database availability:

psql --host ${DB_SERVER_HOST} --port ${DB_SERVER_PORT} --username ${DB_SERVER_ROOT_USER} --list

I tried manually executing that command and this is the output:

psql: ERROR: column d.daticulocale does not exist LINE 8: d.daticulocale as "ICU Locale", ^ HINT: Perhaps you meant to reference the column "d.datlocale".

I think the issue here is that all zabbix-server-pgsql images are still using "postgresql 16" client and possibly the "--list" command doesn't work properly with different DB versions.

I checked all the flavors (alpine, ubuntu and redhat) and they all show the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions