Skip to content

Upgrade to PSQL12 and Zabbix 5.0.x #13

@mjtrangoni

Description

@mjtrangoni

Hi @Doctorbal,

While trying to prepare the upgrade to Zabbix 5.0, I faced the issue of the new double precision.

This requires PSQL >= 12, as said here. See the patch here.

What is your opinion about this? Would you mind making a paragraph for this case here.

I have also to test this well before the final move. Is this correct?

-- history
CREATE TABLE public.history
(
    itemid bigint NOT NULL,
    clock integer NOT NULL DEFAULT 0,
    value DOUBLE PRECISION NOT NULL DEFAULT '0.0000',
    ns integer NOT NULL DEFAULT 0
) PARTITION BY RANGE (clock);

CREATE INDEX history_1 ON public.history USING btree (itemid, clock);

-- trends
CREATE TABLE public.trends
(
    itemid bigint NOT NULL,
    clock integer NOT NULL DEFAULT 0,
    num integer NOT NULL DEFAULT 0,
    value_min DOUBLE PRECISION NOT NULL DEFAULT 0.0000,
    value_avg DOUBLE PRECISION NOT NULL DEFAULT 0.0000,
    value_max DOUBLE PRECISION NOT NULL DEFAULT 0.0000,
    CONSTRAINT trends_pkey PRIMARY KEY (itemid, clock)
) PARTITION BY RANGE (clock);

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions