Re: creating index names automatically?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: creating index names automatically?
Дата
Msg-id 15757.1261258131@sss.pgh.pa.us
обсуждение исходный текст
Ответ на creating index names automatically?  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: creating index names automatically?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: creating index names automatically?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Could we create an option to create index names automatically, so you'd
> only have to write

> CREATE INDEX ON foo (a);

> which would pick a name like foo_a_idx.  We already do this in a number
> of places such as constraint names and sequences without much trouble.
> In most cases you don't really need to give an index a smart name since
> the purpose is obvious.

In the cases where that's sensible, you can use constraint syntax, no?

I really doubt that it's that easy to pick a sensible name for an index
on an expression, for example.
        regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: dump order of sequence options
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: creating index names automatically?