Re: Use Postgres as a column store by creating one table per column

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Use Postgres as a column store by creating one table per column
Дата
Msg-id 20190524193815.GE2480@tamriel.snowman.net
обсуждение исходный текст
Ответ на Use Postgres as a column store by creating one table per column  (Lev Kokotov <lev.kokotov@gmail.com>)
Список pgsql-performance
Greetings,

* Lev Kokotov (lev.kokotov@gmail.com) wrote:
> Is it efficient to use Postgres as a column store by creating one table per
> column?

Short answer is no, not in a traditional arrangement, anyway.  The tuple
overhead would be extremely painful.  It's possible to improve on that,
but it requires sacrificing what the tuple header gives you- visibility
information, along with some other things.  The question will be if
that's acceptable or not.

> I'm thinking since Postgres stores tables in continuous blocks of 16MB each
> (I think that's the default page size?) I would get efficient reads and
> with parallel queries I could benefit from multiple cores.

The page size in PG is 8k, not 16MB.

Thanks,

Stephen

Вложения

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Use Postgres as a column store by creating one table per column
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: Use Postgres as a column store by creating one table per column