Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hi0z6-0000kJ-S1 for pgsql-general@arkaria.postgresql.org; Mon, 01 Jul 2019 18:25:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hi0z5-0001XX-Mc for pgsql-general@arkaria.postgresql.org; Mon, 01 Jul 2019 18:24:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hi0z5-0001Ta-0Z for pgsql-general@lists.postgresql.org; Mon, 01 Jul 2019 18:24:59 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hi0z1-0008M2-UK for pgsql-general@lists.postgresql.org; Mon, 01 Jul 2019 18:24:57 +0000 Received: by mail-ot1-x333.google.com with SMTP id z23so14456867ote.13 for ; Mon, 01 Jul 2019 11:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Pe3t/UYxHyIX0VRgJuI8TncGmIYy54kY0f0zkgzr+jE=; b=JTBXgVoZxkfHKaXUjrpCIyAtW0DBlr8PK8qtzPKNz9goBa98iMMIKS5R4Bz465ODh3 MjuYWXbV3sBuaCkYvBRQTP3wlxPPpOZmM7rAPHxTo4JBPpOfSqoCi5D3VTwwRCy4lmdd yMb/GMNXRc2yJn6kJiqLrtig+7e7Fz7jPnUG3ZxfqGJqDuVp7XIr5Gl1SGS4Fleehr5q g/HVq/Pf7pi8/fn2NKF9EeFevhBRe0KUztQ2G+GTGkfjDQhU0F3tuZGgZAl7pvPFrMnj Y688iIxUGxG4i/AWunu3ocTG7DR5Ba2ASGMhWdTYBzzpo4e1xWSeF1+bbrmYcEefX7kG lKWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Pe3t/UYxHyIX0VRgJuI8TncGmIYy54kY0f0zkgzr+jE=; b=iZr8Rny2gpPBMo8D+o2OUAxEX5zRlMasYMqJ/rDbaWmPS7hTg3n+KnK3Y59q1nO62I vNbwRhS62N84Fq8bp2GPs9mXW+VJIrj0lqZeOTxBfcexfWIdhI7Dvve5NcAV7A03vs4L eN5g3+x+Fusx3ZVqEz0478sEWZZ3pj35DD2bFpJfJqIHXwX4+IThkc4SApHopmWY3SAE fRlGTjG993JS7o3Cwo4BObXv9VeaJzWJ80D1PzsQxKBS1kdxxZmP+VAzH8Fsng/3kyCq egu23fzTFeGtqtjIgAJM2PYGO/GKO4w8oamRlQ0OW1KPd9efenznCSArm5ieBaoUwq1g cu8Q== X-Gm-Message-State: APjAAAUEQSV4Y2wRZ/9J7HMPIgAfAmeAVQ4VBcv71lFVTh7AbUZN2ZBe AzNdGtELWtGpJcfxEYuVTWuwpwNL1MU= X-Google-Smtp-Source: APXvYqwJ2CYICCtbH/b5K1ATJJopfaIPoOLmAk0noU97LzuR4T3D2VXg3beb+5L6KCbAmEnwuCjIKw== X-Received: by 2002:a9d:7741:: with SMTP id t1mr609387otl.178.1562005494908; Mon, 01 Jul 2019 11:24:54 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id z69sm4129362oia.48.2019.07.01.11.24.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jul 2019 11:24:54 -0700 (PDT) Subject: Re: Statistics tables not being updated anymore To: Adrian Klaver , "pgsql-general@lists.postgresql.org" References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com> <83991679-2946-fae2-9e53-47d9fd712132@aklaver.com> From: Ron Message-ID: Date: Mon, 1 Jul 2019 13:24:53 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <83991679-2946-fae2-9e53-47d9fd712132@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. > >> >> track_activities                    | on >> track_activity_query_size           | 1024 >> track_commit_timestamp              | off >> track_counts                        | on >> track_functions                     | none >> track_io_timing                     | off >> >> Thanks >> >> -- >> Angular momentum makes the world go 'round. > > -- Angular momentum makes the world go 'round.