Re: Aggregate not using BRIN index on timestamp

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Aggregate not using BRIN index on timestamp
Дата
Msg-id 20190805172717.GA10185@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Aggregate not using BRIN index on timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 2019-Aug-05, Tom Lane wrote:

> FWIW, I suspect the hard part would be dealing with cases where the
> extremal ranges (according to the index) contain no live tuples
> (according to the query's snapshot).  The btree case handles the
> invisible-tuples problem by continuing a scan started at the index
> endpoint until it finds a visible tuple --- which, in the worst case,
> can take a long time.  It's not obvious to me what you'd do with
> BRIN.

Hmm, yeah, that's a tough problem -- hadn't thought about that.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Aggregate not using BRIN index on timestamp
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: How to check if a field exists in NEW in trigger