pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Statistics tables not being updated anymore
Date: Mon, 01 Jul 2019 19:41:06 -0400
Message-ID: <25948.1562024466@sss.pgh.pa.us> (raw)
In-Reply-To: <efe176ab-4a14-3a9b-d540-79a67f7bf0e9@gmail.com>
References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com>
	<25326.1562006905@sss.pgh.pa.us>
	<931f460e-18c7-942b-41cd-bbd6bfeaa9af@gmail.com>
	<43474cbf-f5be-49f9-8162-d3905848bfa7@aklaver.com>
	<efe176ab-4a14-3a9b-d540-79a67f7bf0e9@gmail.com>

Ron <ronljohnsonjr@gmail.com> writes:
> On 7/1/19 2:43 PM, Adrian Klaver wrote:
>> Have you gone through the logs looking for errors/warnings about the stats 
>> collector?

> Yes, but there's nothing.

One theory as to what broke is that somebody messed with your system's
packet filtering (firewall) rules, and now the kernel is discarding
statistics packets that backends are trying to send to the stats
collector.  If that's the case, then when you restart the postmaster
there will be some bleats in the log about it, because the stats
collector checks for this problem at startup (but never again :-().

This theory doesn't completely explain your problem, because it
only explains why no new stats data is appearing, not why you
can't still see the stats state as it was before data transmission
stopped.

The latter part might be explained if you'd done pg_stat_reset()
in hopes of clearing the problem --- except that I think the
transmission of the reset command is done over the same IP socket
that stats data goes through, so how'd it get through if that's
being blocked?

Anyway, bottom line is to pay close attention to the postmaster
log when you restart.

			regards, tom lane





view thread (17+ messages)  latest in thread

Message-ID: <25948.1562024466@sss.pgh.pa.us>
Permalink:  ../25948.1562024466@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25948.1562024466@sss.pgh.pa.us

 · 

reply

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
  Subject: Re: Statistics tables not being updated anymore
  In-Reply-To: <25948.1562024466@sss.pgh.pa.us>
  References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com> <25326.1562006905@sss.pgh.pa.us> <931f460e-18c7-942b-41cd-bbd6bfeaa9af@gmail.com> <43474cbf-f5be-49f9-8162-d3905848bfa7@aklaver.com> <efe176ab-4a14-3a9b-d540-79a67f7bf0e9@gmail.com> <25948.1562024466@sss.pgh.pa.us>

* 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