Re: how do you determine if you have a healthy database

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: "Gregery L(dot) Thompson" <gthompson(at)redflex(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: how do you determine if you have a healthy database
Date: 2016-02-15 17:52:28
Message-ID: 56C2105C.8040106@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 02/08/2016 04:28 PM, Gregery L. Thompson wrote:
> Two quick questions
>
> 1.How do you determine if you have a healthy database?

I would say start by looking at the database logs. If you are seeing
FATAL and PANIC errors something is not happy.

A lot of this depends on what you consider healthy?

There are conditions within the database, i.e. file corruption and then
there are conditions outside of the database, memory issues, lack of
space, etc. The two can also be connected, where bad memory or hard
drive causes database file corruption.

>
> 2.It needs to be healthy before rebooting correct?

It depends on what is causing the problem. Postgres has a single user
mode that can be started to fix some problems. Also if the database
issue was that it was resource constrained and you fixed that then the
database could be started.

>
> Thanks
>
> Greg
>
> _Greg Thompson_
>
> Sr. Database Administrator
>
> Redflex Traffic Systems, Inc.
>
> 4402 W. Calle Lejos
>
> Glendale, AZ 85310 USA
>
> Ph: +1 (623) 207-2227
>
> Cell: +1 (623) 221-3728
>
> Fx: +1 (623) 207-2050
>
> www.redflex.com
>
> Making A Safer World!
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-02-15 17:59:19 Re: Manage SCD 2 table using the INSERT --- ON CONFLICT
Previous Message Melvin Davidson 2016-02-15 17:40:38 Re: Postgresql Server Upgarde