| From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
|---|---|
| To: | Zhihong Zhang <zhihong(at)gmail(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Indexing on JSONB field not working |
| Date: | 2020-01-03 14:14:48 |
| Message-ID: | CAMkU=1xvrdppRC_MX3u65ndrYLr4QuaoRpoRXWOKEOv2YQOdvQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Thu, Jan 2, 2020 at 5:07 PM Zhihong Zhang <zhihong(at)gmail(dot)com> wrote:
>
> We have auto-analyze running every night and it didn’t create the stats
> either.
Auto-analyze (ANALYZE fired by the autovacuum launcher) is automatic. How
can you choose the time at which it runs ("every night")?
Are you doing something non-standard, like dropping
autovacuum_analyze_scale_factor every evening and then increasing it again
every morning?
I think it’s probably related to the logic that it skips analyzing if not
> enough records changed.
Yes. The creation of an index is not something which triggers an
auto-analyze. Perhaps it should.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Janes | 2020-01-03 14:50:33 | Re: BUG #16183: PREPARED STATEMENT slowed down by jit |
| Previous Message | Jeff Janes | 2020-01-03 13:54:23 | Re: Indexing on JSONB field not working |