Re: autoanalyze did not run - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: autoanalyze did not run
Date
Msg-id c6b71dd5f6839962adef8b1481d9de348ccce661.camel@cybertec.at
Whole thread Raw
In response to autoanalyze did not run  (Олег Самойлов <splarv@ya.ru>)
Responses Re: autoanalyze did not run
List pgsql-admin
On Mon, 2026-01-26 at 08:31 +0300, Олег Самойлов wrote:
> I try to investigate why autoanalyze did not run in time of our initial
> loading data. Yes, I know, running analyze manually is highly
> recommended in such case. But is must run automatically too.

You'd have to show more evidence that this is a bug, or provide a way
to reproduce the problem.

> select relid::regclass, n_live_tup, n_tup_ins, n_tup_upd,
> n_mod_since_analyze from pg_stat_user_tables as s join pg_class as c on
> (s.relid=c.oid) where s.autoanalyze_count=0 and relkind='r' and
> n_live_tup>0 limit 1;
> -[ RECORD 1 ]-------+----------
> relid               | addresses
> n_live_tup          | 13844405
> n_tup_ins           | 0
> n_tup_upd           | 0
> n_mod_since_analyze | 0
>
> PostgreSQL 17.7 (Debian 17.7-3.pgdg13+1) on x86_64-pc-linux-gnu,
> compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit (from PGDG)

Are you sure that you committed the transaction?

Is "track_activities" set to "on"?

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Олег Самойлов
Date:
Subject: autoanalyze did not run
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: autoanalyze did not run