Re: PostgreSQL 'Corruption & Fragmentation' detection and resolution/fix

From: Pavan Teja <pavan(dot)postgresdba(at)gmail(dot)com>
To: Rui DeSousa <rui(dot)desousa(at)icloud(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PostgreSQL 'Corruption & Fragmentation' detection and resolution/fix
Date: 2018-06-11 16:58:51
Message-ID: CACh9nsZ9EmeEZv3u1s+iDQ6stv5+ARi=pWvz0hXaOMW4izFrPQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Jun 11, 2018, 10:22 PM Rui DeSousa <rui(dot)desousa(at)icloud(dot)com> wrote:

>
> > On Jun 11, 2018, at 9:28 AM, pavan95 <pavan(dot)postgresdba(at)gmail(dot)com>
> wrote:
> >
> > I'm searching a way to detect postgresql corruption on a daily basis.
> Please
> > provide me
> >
>
> If you haven’t already (show data_checksums); I would recommend turning on
> data checksums to allow Postgres to detect i/o data corruption issues.
>
> If it’s not enabled then you’ll have to reinit your database: initdb
> —data-checksums …
>
> I would be very concerned why you feel the need to check for corruption
> and would question your platform. The only time I’ve seen corruption was
> due to a disk subsystem problem which data-checksums should help flush out
> for you or a Postgres bug which would normally gets bubbled up via the
> application and/or the logs.
>
> Make sure you have good backups; there really is no script that going to
> solve a faulty disk subsystem or other disaster.

Thanks Rui,

Actually found some issues like segmentation fault with sigssv 11. I'm
concerned about to make my database healthy against critical problems
mainly in case of production environment. Also what's the instant thing
that one needs to do in case of corrupted data.

Also it will be greatful if you can suggest me a script to find
fragmentation

Regards,
Pavan

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Geoghegan 2018-06-11 17:02:39 Re: PostgreSQL 'Corruption & Fragmentation' detection and resolution/fix
Previous Message Rui DeSousa 2018-06-11 16:52:49 Re: PostgreSQL 'Corruption & Fragmentation' detection and resolution/fix