-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
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
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested