[HACKERS] COMPRESS VALUES feature request

Поиск
Список
Период
Сортировка
От Erez Segal
Тема [HACKERS] COMPRESS VALUES feature request
Дата
Msg-id CAPo0pRFeB7vbcKqHAN55geW9tYmj+MG_HVugVkSp4KfHvphtmA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] COMPRESS VALUES feature request  (Marko Tiikkaja <marko@joh.to>)
Список pgsql-hackers
Hi,

Following a discussion in the IRC channel, I'd like to suggest a feature request to the ToDo WIKI page.

The use case is having a column with strings/floats, where some values are very common and can be compressed, while many other values are unique, making a lookup table not efficient.

It can be part of a column definition, set in CREATE TABLE/ALTER TABLE
e.g. field VARCHAR(255) COMPRESS (NULL, 'EREZ', 'SEGAL')


In the IRC channel - johto suggested an implementation:

<johto> if you want to get really fancy you could have two columns where only one of set; one would be the value (if reasonably unique) and the other the id (if not)
I'd like to add that an ENUM can be used instead of the id+lookup table in the 2nd column for non unique values.


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

Предыдущее
От: Petr Jelinek
Дата:
Сообщение: Re: [HACKERS] logical replication deranged sender
Следующее
От: Ilya Shkuratov
Дата:
Сообщение: Re: [HACKERS] CTE inlining