Re: Is there an upper limit on the size of an array if it is indexed?

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: Is there an upper limit on the size of an array if it is indexed?
Дата
Msg-id 530BACFC.7080807@gmail.com
обсуждение исходный текст
Ответ на Is there an upper limit on the size of an array if it is indexed?  (AlexK <alkuzo@gmail.com>)
Список pgsql-sql
On 02/24/2014 01:30 PM, AlexK wrote:
> I have created a unique index on an array of integers, and it works for a
> small test case:
>
> create table i(id int not null primary key,
> v int[] not null unique );
>
> insert into i(id, v) values(1, ARRAY[1,2]);
>
> -- fails
> insert into i(id, v) values(2, ARRAY[1,2]);
> -- succeeds
> insert into i(id, v) values(2, ARRAY[2,1]);
>
> Is there an upper limit on the size of an array being indexed? I am
> currently considering arrays of 2K-3K integers.
>
>
>
What are the odds?  Might be worth the risk.

rjs




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

Предыдущее
От: AlexK
Дата:
Сообщение: Is there an upper limit on the size of an array if it is indexed?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Is there an upper limit on the size of an array if it is indexed?