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?
Дата
в 13:11:37
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? Andres Freund <andres@2ndquadrant.com>
Re: Why do we allow indexes to contain the same column more than once? Tom Lane <tgl@sss.pgh.pa.us>
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
Дата:
От: Tom Lane
Дата:
Сообщение: Re: improving \dt++ in psql
FAQ