Re: index unique

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index unique
Дата
Msg-id 1175436.1623182714@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: index unique  (Marc Millas <marc.millas@mokadb.com>)
Список pgsql-general
Marc Millas <marc.millas@mokadb.com> writes:
> I know, its clearly stated in postgres doc about btree," The only
> limitation is that an index entry cannot exceed approximately one-third of
> a page (after TOAST compression, if applicable)."

Yup.

> is there any plan to adress this ?

No.  The cost/benefit ratio seems completely untenable.

The usual recommendation is that you shorten long values by hashing
them, eg create a unique index on md5(my_long_column).

            regards, tom lane



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: index unique
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: index unique