RE: Postgres Stale Statistics

From: Adelino Silva <adelino(dot)silva(at)pt(dot)ibm(dot)com>
To: Nikhil Shetty <nikhil(dot)dba04(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: RE: Postgres Stale Statistics
Date: 2022-04-27 14:55:56
Message-ID: SA0PR15MB3856D4DBB389A9DF158433BDD2FA9@SA0PR15MB3856.namprd15.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

One possible cause for this problem is that the statistics collector process is bound to an IP:port which is not responding.
See the following thread discussion.

https://stackoverflow.com/questions/46008372/using-stale-statistics-instead-of-current-ones
[https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon(at)2(dot)png?v=73d79a89bded]<https://stackoverflow.com/questions/46008372/using-stale-statistics-instead-of-current-ones>
Using stale statistics instead of current ones - Stack Overflow<https://stackoverflow.com/questions/46008372/using-stale-statistics-instead-of-current-ones>
Teams. Q&A for work. Connect and share knowledge within a single location that is structured and easy to search. Learn more
stackoverflow.com

Regards,

Adelino Silva

________________________________
From: Nikhil Shetty <nikhil(dot)dba04(at)gmail(dot)com>
Sent: Wednesday, April 27, 2022 2:49 PM
To: Adelino Silva <adelino(dot)silva(at)pt(dot)ibm(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: [EXTERNAL] Re: Postgres Stale Statistics

Hi Adelino, I had gone through that thread before, we cannot move the stats to RAM as of now. Thanks, Nikhil On Wed, Apr 27, 2022 at 6:16 PM Adelino Silva <adelino(dot)silva(at)pt(dot)ibm(dot)com> wrote: Hi, Found this thread that explains the warning.
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd
Hi Adelino,

I had gone through that thread before, we cannot move the stats to RAM as of now.

Thanks,
Nikhil

On Wed, Apr 27, 2022 at 6:16 PM Adelino Silva <adelino(dot)silva(at)pt(dot)ibm(dot)com<mailto:adelino(dot)silva(at)pt(dot)ibm(dot)com>> wrote:
Hi,

Found this thread that explains the warning.
using stale statistics instead of current ones because stats collector is not responding
https://www.postgresql.org/message-id/1457523467.24545.43.camel@2ndquadrant.com<https://www.postgresql.org/message-id/1457523467.24545.43.camel@2ndquadrant.com>
[https://www.postgresql.org/media-archives/img/about/press/elephant.png]<https://www.postgresql.org/message-id/1457523467.24545.43.camel@2ndquadrant.com>
PostgreSQL: Re: using stale statistics instead of current ones because stats collector is not responding<https://www.postgresql.org/message-id/1457523467.24545.43.camel@2ndquadrant.com>
Hi, On Tue, 2016-03-08 at 16:18 -0800, Tory M Blue wrote: > No hits on the intratubes on this. > …
www.postgresql.org<http://www.postgresql.org>

Regards,

Adelino Silva

________________________________
From: Nikhil Shetty <nikhil(dot)dba04(at)gmail(dot)com<mailto:nikhil(dot)dba04(at)gmail(dot)com>>
Sent: Wednesday, April 27, 2022 12:08 PM
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org<mailto:pgsql-admin(at)lists(dot)postgresql(dot)org>>
Subject: [EXTERNAL] Postgres Stale Statistics

Hi, We are getting below WARNING on one of the standby instances. Not sure what caused it but to resolve it we tried restarting the database instances but it is still not working WARNING - using stale statistics instead of current ones because
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd
Hi,

We are getting below WARNING on one of the standby instances. Not sure what caused it but to resolve it we tried restarting the database instances but it is still not working

WARNING - using stale statistics instead of current ones because stats collector is not responding

Postgresql version - 11.7

Any other option to resolve this? We are thinking of building the standby again but what if the WARNING is for a primary database instance and a restart won't solve it?

Thanks and Regards,

Nikhil

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Nikhil Shetty 2022-04-27 15:36:44 Re: Postgres Stale Statistics
Previous Message Pepe TD Vo 2022-04-27 14:15:36 Re: Bakcup macro