Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0A782B5D80A for ; Sun, 19 Jun 2011 13:51:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 28447-02 for ; Sun, 19 Jun 2011 16:51:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id C45A8B5D801 for ; Sun, 19 Jun 2011 13:51:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p5JGpPgW016095; Sun, 19 Jun 2011 12:51:25 -0400 (EDT) To: "Jeff Janes" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6068: automatic analyze runs endlessly In-reply-to: <201106182232.p5IMWOZR013117@wwwmaster.postgresql.org> References: <201106182232.p5IMWOZR013117@wwwmaster.postgresql.org> Comments: In-reply-to "Jeff Janes" message dated "Sat, 18 Jun 2011 22:32:24 +0000" Date: Sun, 19 Jun 2011 12:51:25 -0400 Message-ID: <16094.1308502285@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/167 X-Sequence-Number: 30546 "Jeff Janes" writes: > Starting with commit b4b6923e03f4d29636a94f6f4cc2f5cf6298b8c8, > "Fix VACUUM so that it always updates pg_class.reltuples/relpages." > After running make installcheck, the tables regression.public.slow_emp4000 > and regression.public.fast_emp4000 get analyzed once a minute even though > they have no activity. None of the other installcheck tables, just those > two. > This has no direct negative effect that I know of, but it seems to be a > worrying symptom that pg_class or some related entity may not be getting > updated correctly. Hmm ... seems worrisome, all right, but I don't see that happening here. At least I don't see any indication of it in pg_stat_all_tables.last_autoanalyze. Are you looking at that, or some other evidence? Do you have any nondefault settings? regards, tom lane