pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6068: automatic analyze runs endlessly
4+ messages / 2 participants
[nested] [flat]

* BUG #6068: automatic analyze runs endlessly
@ 2011-06-18 22:32 Jeff Janes <jeff.janes@gmail.com>
  2011-06-19 16:51 ` Re: BUG #6068: automatic analyze runs endlessly Tom Lane <tgl@sss.pgh.pa.us>
  2011-06-19 17:31 ` Re: BUG #6068: automatic analyze runs endlessly Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 4+ messages in thread

From: Jeff Janes @ 2011-06-18 22:32 UTC (permalink / raw)
  To: pgsql-bugs


The following bug has been logged online:

Bug reference:      6068
Logged by:          Jeff Janes
Email address:      jeff.janes@gmail.com
PostgreSQL version: 9.1beta1
Operating system:   Linux
Description:        automatic analyze runs endlessly
Details: 

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.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #6068: automatic analyze runs endlessly
  2011-06-18 22:32 BUG #6068: automatic analyze runs endlessly Jeff Janes <jeff.janes@gmail.com>
@ 2011-06-19 16:51 ` Tom Lane <tgl@sss.pgh.pa.us>
  2011-06-19 17:35   ` Re: BUG #6068: automatic analyze runs endlessly Jeff Janes <jeff.janes@gmail.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Tom Lane @ 2011-06-19 16:51 UTC (permalink / raw)
  To: Jeff Janes <jeff.janes@gmail.com>; +Cc: pgsql-bugs

"Jeff Janes" <jeff.janes@gmail.com> 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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #6068: automatic analyze runs endlessly
  2011-06-18 22:32 BUG #6068: automatic analyze runs endlessly Jeff Janes <jeff.janes@gmail.com>
  2011-06-19 16:51 ` Re: BUG #6068: automatic analyze runs endlessly Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-06-19 17:35   ` Jeff Janes <jeff.janes@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Jeff Janes @ 2011-06-19 17:35 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs

On 6/19/11, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Jeff Janes" <jeff.janes@gmail.com> 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?


Just log_autovacuum_min_duration=0

Both evidence and setting.

Cheers, Jeff



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #6068: automatic analyze runs endlessly
  2011-06-18 22:32 BUG #6068: automatic analyze runs endlessly Jeff Janes <jeff.janes@gmail.com>
@ 2011-06-19 17:31 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 4+ messages in thread

From: Tom Lane @ 2011-06-19 17:31 UTC (permalink / raw)
  To: Jeff Janes <jeff.janes@gmail.com>; +Cc: pgsql-bugs

"Jeff Janes" <jeff.janes@gmail.com> writes:
> 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.

Oh, wait, I see what's different about those two tables: they have no
analyzeable columns.  I thinko'd what to do in that situation.  Will
fix.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2011-06-19 17:35 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-18 22:32 BUG #6068: automatic analyze runs endlessly Jeff Janes <jeff.janes@gmail.com>
2011-06-19 16:51 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-06-19 17:35   ` Jeff Janes <jeff.janes@gmail.com>
2011-06-19 17:31 ` Tom Lane <tgl@sss.pgh.pa.us>

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