Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aPea6-0006FP-P4 for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Jan 2016 23:05:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aPea6-0001e3-48 for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Jan 2016 23:05:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aPea5-0001dn-1y for pgsql-hackers@postgresql.org; Sat, 30 Jan 2016 23:05:25 +0000 Received: from mout.gmx.net ([212.227.17.20]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1aPea2-0001RN-3m for pgsql-hackers@postgresql.org; Sat, 30 Jan 2016 23:05:23 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M2tKM-1a7Zzl0mne-00sfw6 for ; Sun, 31 Jan 2016 00:05:19 +0100 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 748A22C5BA for ; Sat, 30 Jan 2016 18:05:17 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 30 Jan 2016 18:05:17 -0500 X-Sasl-enc: etWKhUfcFanUKcGJUGQBwNgLE3RlPCmOPql/fFhyQJPy 1454195117 Received: from [10.0.0.7] (c-73-13-69-21.hsd1.pa.comcast.net [73.13.69.21]) by mail.messagingengine.com (Postfix) with ESMTPA id 3A55D6800DE for ; Sat, 30 Jan 2016 18:05:17 -0500 (EST) To: pgsql-hackers From: Peter Eisentraut Subject: statistics for shared catalogs not updated when autovacuum is off X-Enigmail-Draft-Status: N1110 Message-ID: <56AD41AC.1030509@gmx.net> Date: Sat, 30 Jan 2016 18:05:16 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:MbJgnbt1hOsk4GQDr2BJ2d4u+WvbbdBJP+dHbDMaH8sK5y1RHyN jO5c4NnaaPVKz0ywF4LQdbOfQL8Be6bO6OIiMoDYNcwWOr5CUhmQ/Mt7XzO8U+PEfjGYICV aOgZGHMTktsg4ypYQYmmlIGygtmEV9DRshANrFwTXAxRsZ0JgIDYtzPajDG8bK2kXB98Kc6 9i5kDZ5aJ8nGnhDa7coLg== X-UI-Out-Filterresults: notjunk:1;V01:K0:+XzUTzAteBk=:ISZoQDavi0XVMUdW7rIVZu xZeFX9UNrD90yEMKvwTL6CdDgZmDtWIaH++mELR8Yu8GLDI9KUSeqN25b8HS1+t+p5A7OS3Z+ 1QeuZdzyLVkIzA0A2RmsgSA+zB/UiQJ9VVi0IiwXjPmfX/xRHmdak3ypQIwKZwMSQ8pv8YhG6 u3JqvlN0yziz76krR8Ry48TrxaXIBCLQHWb8x6vGgRI2cLrklch5qTMePf5xEgRS2UkUOPysR 7s2RyLQcJoM1GrpA6OAl8T4EBihLQ/EkyskhfT+0G+t3sp8j204BCGwIeilR3wSseqblUxgSJ nUTOeOQAokPfdIscKfbXcJ0a/Fk1lVfaYzdr+9HwJw4tgmDPtn5wv1pTbn55O4g2WTPp4QF5l 8rInj+2jFKRgLudEz53dd2Y3nT2iRWdmErjlz8T5C6cImcLZIMm5VKZnR1bK58AA1QQtPxjun lVSXoXVEMo6ZB98kEJklsrD5euTaOMYQD+/XLdSTQLid5y9IsoYzLMvWkyPEQD4ASOAo07Jwg WLbCOt/K+FmqubJkk/FWZ7hI+CnYQNH5+mnOKlxt3Ratc4hUMFajm3BJIWCiAlhCzWIZ8cHdN VnWUWSqMj+C4H0ApFEMvBvWgZPAn7BgHla923H5nKvv3UiuR24veCRzd9IKcXaWX41u29whCI uEBBSq49VcHUi+hlyxVNGy7JdpdRHEvcXmzHFwUUhIJXlZZuM+nafw5BmKe16uKNGpTPPTKF5 E3YQFj1rUlgWWKFy9qYYxu2GkDyI2sKOUJkFbP8Ayrhz+Tdo0KrsIPTY+n+lI13YkW3ppDxeY JZDqQ32 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org When autovacuum is off, the statistics in pg_stat_sys_tables for shared catalogs (e.g., pg_authid, pg_database) never update. So seq_scan doesn't update when you read the table, last_analyze doesn't update when you run analyze, etc. But when you shut down the server and restart it with autovacuum on, the updated statistics magically appear right away. So seq_scan is updated with the number of reads you did before the shutdown, last_analyze updates with the time of the analyze you did before the shutdown, etc. So the data is saved, just not propagated to the view properly. I can reproduce this back to 9.3, but not 9.2. Any ideas? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers