Re: Why do we allow indexes to contain the same column more than once?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Why do we allow indexes to contain the same column more than once?
Дата
Msg-id 20140501131131.GA14243@awork2.anarazel.de
обсуждение исходный текст
Ответ на Why do we allow indexes to contain the same column more than once?  (Greg Stark <stark@mit.edu>)
Ответы Re: Why do we allow indexes to contain the same column more than once?
Список pgsql-hackers
Hi,

On 2014-05-01 13:55:46 +0100, Greg Stark wrote:
> Is there some use case for that I'm not seeing?
> 
> postgres=***# create index tti on
> tt(i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i);
> CREATE INDEX
> Time: 15.891 ms

Can be useful if different opclasses are used for the individual
columns. Other than that I am not seing much use.
But what would we gain by prohibiting it except possibly breaking
people's upgrades?

Greetings,

Andres Freund



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Why do we allow indexes to contain the same column more than once?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: improving \dt++ in psql