Re: WARNING: pgstat wait timeout

From: dinesh kumar <dineshkumar02(at)gmail(dot)com>
To: Jake Stride <jake(at)stride(dot)me(dot)uk>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: WARNING: pgstat wait timeout
Date: 2013-02-04 13:54:52
Message-ID: CALnrH7oHagFUCAzTKSUOMfyT=NyEOdcrCBnJFoQSrnUZ6zDAUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

As of now, i found the following cases where we can expect these kind of
WARNING message in pg_log.

Case 1 { Huge I/O }

======

When the postgresql autovacuum process is not able to get the required I/O
to write the statistics to "stats_temp_location" then we can get this kind
of WARNING Message. As discussed, the huge I/O may causing due to the
checkpoint occurs on the Database.

How to log the checkpoints information .

===============================

1) Edit the postgresql.conf file as log_checkpoints=on

2) Select Pg_Reload_Conf();

Case 2 {Invalid stats_temp_location}

======

When the postgresql "stats_temp_location" is invalid path, then in this
case also we can expect this kind of WARNING Message. If you want to change
this location to some other place, then we need to follow the below
approach.

1) Edit the postgresql.conf file as stats_temp_location='<PATH>'

2) Select Pg_Reload_Conf();

Case 3 {Invalid Localhost IP}

======

There might be a chance, we have an invalid Localhost IP. Please check the
localhost entires in Hosts file and rectify it if any thing wrong.

Once we made any changes in this file then we need to restart the
PostgreSQL Cluster to take it's Effect on autovacuum worker processes.

I hope some one will add more on this.

Regards,

Dinesh Kumar

manojadinesh.blogspot.com

On Mon, Feb 4, 2013 at 5:24 PM, Jake Stride <jake(at)stride(dot)me(dot)uk> wrote:

> I have had some issues with a database on EC2 and I have restored it to a
> new instance. When vacuuming the database I am getting the following in the
> logs;
>
> WARNING: pgstat wait timeout
>
> Is this normal/acceptable?
>
> Thanks
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Farber 2013-02-04 14:17:36 Adding PRIMARY KEY: Table contains duplicated values
Previous Message Hari Babu 2013-02-04 12:46:07 Re: [GENERAL] JDBC connection test with SSL on PG 9.2.1 server