From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Statistics tables not being updated anymore
Date: Mon, 1 Jul 2019 14:35:59 -0500
Message-ID: <ab61efcd-58bb-674a-2b6d-b9fac0314550@gmail.com> (raw)
In-Reply-To: <f2a54735-65b6-f117-7f5e-463e1cc04bc9@aklaver.com>
References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com>
<83991679-2946-fae2-9e53-47d9fd712132@aklaver.com>
<a7d578e8-c266-1adb-92fe-a413b682c8d4@gmail.com>
<f2a54735-65b6-f117-7f5e-463e1cc04bc9@aklaver.com>
On 7/1/19 1:48 PM, Adrian Klaver wrote:
> On 7/1/19 11:24 AM, Ron wrote:
>> On 7/1/19 1:07 PM, Adrian Klaver wrote:
>>> On 7/1/19 10:27 AM, Ron wrote:
>>>> Hi.
>>>>
>>>> v9.6.9
>>>>
>>>> Statistics views like pg_stat_*_tables, pg_stat_*_indexes,
>>>> pg_statio_*_tables and pg_statio_*_indexes aren't being updated
>>>> anymore. Specifically, all counter fields are 0, and date fields are
>>>> blank.
>>>>
>>>> The first thing I checked was postgresql.conf (but it hasn't been
>>>> modified since December 2018), and track_activities is turned on. Also,
>>>> I connect as user "postgres", so it's not a privileges problem.
>>>>
>>>> Where else should I look?
>>>
>>> Is it an autovacuum problem?
>>>
>>> What happens if you do a manual ANALYZE?
>>
>> We run manual ANALYZE jobs every day, and still the columns are blank and
>> zero,
>>
>>>
>>> What shows up in the pg_stats view?
>>
>> Only the pg_catalog tables have values in, for example,
>> elem_count_histogram.
>
> Suggestions:
>
> 1) For starters I would go back to the source pg_statistic and see if the
> values actually change.
I don't see any values in it, either.
>
> 2) Make sure that some code is not issuing a SET that is overriding the
> postgresql.conf settings. Or that someone has not changed an include file.
None.
>
> 3) Look at pg_stat_activity to see if there is actually any activity
> recorded.
We do see that being updated.
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: Statistics tables not being updated anymore
In-Reply-To: <ab61efcd-58bb-674a-2b6d-b9fac0314550@gmail.com>
References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com> <83991679-2946-fae2-9e53-47d9fd712132@aklaver.com> <a7d578e8-c266-1adb-92fe-a413b682c8d4@gmail.com> <f2a54735-65b6-f117-7f5e-463e1cc04bc9@aklaver.com> <ab61efcd-58bb-674a-2b6d-b9fac0314550@gmail.com>
* 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