Re: Notation of index

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Notation of index
Дата
Msg-id 200401071936.53243.peter_e@gmx.net
обсуждение исходный текст
Ответ на Notation of index  (Andreas <maps.on@gmx.net>)
Список pgsql-sql
Andreas wrote:
> Why can['t] we use INDEX the same way as UNIQUE ?
> Perhaps even as in
> ...
>   numba   INT4    NOT NULL    INDEX
> ...

If the choice were just index or no index, then this might be ok, but 
when you create an index you can choose the index type, the operator 
class, a partial index predicate, so the notation would quickly become 
complicated.  You can also consider similar arguments about why rules 
and triggers are created separately.

What would clearly be useful is a way to automatically generate names 
for indexes.  Maybe we should think about implementing something for 
that.



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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Notation of index
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Importation wtih copy generated some wrong registers..