Re: Indexing on JSONB field not working

Поиск
Список
Период
Сортировка
От Zhihong Zhang
Тема Re: Indexing on JSONB field not working
Дата
Msg-id FF2FADEB-3496-4CDF-AC15-E57D706A53B8@gmail.com
обсуждение исходный текст
Ответ на Re: Indexing on JSONB field not working  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Indexing on JSONB field not working  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-bugs

> On Jan 2, 2020, at 4:58 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Zhihong Zhang <zhihong@gmail.com> writes:
>> So I like to report 2 bugs,
>
>> 1. “CREATE INDEX” with expression should generate stats automatically.
>
> It does.
I created an index with JSONB field yesterday. It still didnn’t have stats today till I ran ‘analyze’.

>
>> 2. Auto-analyze should generate stats if it is not available, regardless of the number of records changed.
>
> This doesn't square with anyone else's reality either.

We have auto-analyze running every night and it didn’t create the stats either. I think it’s probably related to the
logicthat it skips analyzing if not enough records changed. There was no database changes at all in our case. 

I can reproduce those problems easily. Just tell me what information you need to help debugging and I will get it for
you.Thanks! 

Zhihong




В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Indexing on JSONB field not working
Следующее
От: Andres Freund
Дата:
Сообщение: Re: BUG #16183: PREPARED STATEMENT slowed down by jit