Re: How to use the BRIN index properly?

Поиск
Список
Период
Сортировка
От Siddharth Jain
Тема Re: How to use the BRIN index properly?
Дата
Msg-id CAPqV3pQCPas3CzMx-Syed_-Kzn_Vsq=b=H=_SgoXbFW58-mmWA@mail.gmail.com
обсуждение исходный текст
Ответ на How to use the BRIN index properly?  (Siddharth Jain <siddhsql@gmail.com>)
Ответы Re: How to use the BRIN index properly?  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-general
our insertion order is of course != index order otherwise the question would have been trivial.
we use postgres 14

On Wed, Feb 8, 2023 at 11:51 AM Siddharth Jain <siddhsql@gmail.com> wrote:
Hello,

We have large tables with billions of rows in them and want to take advantage of the BRIN index on them.

Issues we are facing:
  • as I understand, BRIN index is useful only if the data is stored in index order. As an example we want to create a composite BRIN index on 3 columns - integers and strings (varchar). How can we tell Postgres to store data in index order as new records are inserted into the database?
  • i understand that turning on autosummarize will keep the index fresh and up-to-date as new records are inserted. is this correct?
Thanks for your help.

S.

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

Предыдущее
От: Kirk Wolak
Дата:
Сообщение: Re: Sequence vs UUID
Следующее
От: Ron
Дата:
Сообщение: Re: How to use the BRIN index properly?