Re: index unique - Mailing list pgsql-general

From Tom Lane
Subject Re: index unique
Date
Msg-id 1175436.1623182714@sss.pgh.pa.us
Whole thread Raw
In response to Re: index unique  (Marc Millas <marc.millas@mokadb.com>)
List 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 by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: index unique
Next
From: Thomas Kellerer
Date:
Subject: Re: index unique