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