Re: zabbix on postgresql - very slow delete of events - Mailing list pgsql-performance

From Kenneth Marshall
Subject Re: zabbix on postgresql - very slow delete of events
Date
Msg-id 20190723143300.GG21184@aart.rice.edu
Whole thread Raw
In response to Re: zabbix on postgresql - very slow delete of events  (Kristian Ejvind <Kristian.Ejvind@resurs.se>)
Responses Re: zabbix on postgresql - very slow delete of events
List pgsql-performance
On Tue, Jul 23, 2019 at 01:41:53PM +0000, Kristian Ejvind wrote:
> Thanks Kenneth. In fact we've already partitioned the largest history* and trends* tables
> and that has been running fine for a year. Performance was vastly improved. But since you
> can't have a unique index on a partitioned table in postgres 10, we haven't worked on that.
> 
> Regards
> Kristian

Hi Kristian,

Why are you not partitioning the events and alerts tables as well? That
would eliminate this problem and you already have the infrastructure in
place to support the management since you are using it for the history
and trends tables.

Regards,
Ken



pgsql-performance by date:

Previous
From: Kristian Ejvind
Date:
Subject: Re: zabbix on postgresql - very slow delete of events
Next
From: Kristian Ejvind
Date:
Subject: Re: zabbix on postgresql - very slow delete of events