From: Rui DeSousa <rui@crazybean.net>
To: Ashok kumar Mani <amani@accelaero.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: PostgreSQL DB checkpoint error!
Date: Tue, 28 Apr 2020 02:50:23 -0400
Message-ID: <61537141-A530-4AF4-A11D-7722740D4101@crazybean.net> (raw)
In-Reply-To: <AM0P191MB07082D7E3251F1502CF5FA4AAEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM>
References: <AM0P191MB0708F469BBF80C9386F50DD2AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM>
<CAKFQuwaQQake1xi35to9Sx_57O9kbhNtNRm9-ZsoaNEGG=cE=g@mail.gmail.com>
<AM0P191MB07082D7E3251F1502CF5FA4AAEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM>
> On Apr 28, 2020, at 2:31 AM, Ashok kumar Mani <amani@accelaero.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. =
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rui@crazybean.net, amani@accelaero.com, david.g.johnston@gmail.com
Subject: Re: PostgreSQL DB checkpoint error!
In-Reply-To: <61537141-A530-4AF4-A11D-7722740D4101@crazybean.net>
References: <AM0P191MB0708F469BBF80C9386F50DD2AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM> <CAKFQuwaQQake1xi35to9Sx_57O9kbhNtNRm9-ZsoaNEGG=cE=g@mail.gmail.com> <AM0P191MB07082D7E3251F1502CF5FA4AAEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM> <61537141-A530-4AF4-A11D-7722740D4101@crazybean.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox