From: | Rui DeSousa <rui(at)crazybean(dot)net> |
---|---|
To: | Ashok kumar Mani <amani(at)accelaero(dot)com> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: PostgreSQL DB checkpoint error! |
Date: | 2020-04-28 06:50:23 |
Message-ID: | 61537141-A530-4AF4-A11D-7722740D4101@crazybean.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
> On Apr 28, 2020, at 2:31 AM, Ashok kumar Mani <amani(at)accelaero(dot)com> wrote:
>
> I am running cronjob at the same time which will do data pruning for zabbix database(psql). Please let me know if that warning is related to reindex and vacuum ?
>
> ^C-bash-4.2$ cat /Data/zabbix_hkp/scripts/data_Pruning.sh
> psql -d zabbix -f /Data/zabbix_hkp/scripts/three_months_datapurge.sql 1>/Data/zabbix_hkp/scripts_log/data_purging_`date +%m%d%y`.log 2>data_cleaning_err_`date +%m%d%y`.log
> -bash-4.2$ cat /Data/zabbix_hkp/scripts/three_months_datapurge.sql
> -- Delete alerts which are older than 1 day -> tested on 8th april 2020
> delete FROM alerts where age(to_timestamp(alerts.clock)) > interval '90 days';
> VACUUM FULL alerts ;
> REINDEX TABLE ALERTS;
> delete FROM acknowledges where age(to_timestamp(acknowledges.clock)) > interval '90 days';
> VACUUM FULL acknowledges;
> REINDEX TABLE acknowledges;
I would say so; the vacuum full and reindex is going create blocking situations that will hang Zabbix. I wouldn’t run vacuum full or reindex.
From | Date | Subject | |
---|---|---|---|
Next Message | Rui DeSousa | 2020-04-28 07:01:47 | Re: PostgreSQL DB checkpoint error! |
Previous Message | Ashok kumar Mani | 2020-04-28 06:49:11 | RE: PostgreSQL DB checkpoint error! |