Re: Setting a pre-existing index as a primary key

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Setting a pre-existing index as a primary key
Дата
Msg-id 2126.1210432237@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Setting a pre-existing index as a primary key  ("Joshua D. Drake" <jd@commandprompt.com>)
Ответы Re: Setting a pre-existing index as a primary key  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
"Joshua D. Drake" <jd@commandprompt.com> writes:
> Tom Lane wrote:
>> Why, and exactly what would you define as "appropriate naming style"?
>> The user has always been free to pick whatever constraint name he
>> wants.

> Well it should be optional but it would be nice if we had the option to 
> have it renamed per the default... meaning the same output if I were to 
> do this:

If you want that, you can rename the index (either before or afterwards).
I don't see any reason to clutter the make-constraint-from-index command
with questions of renaming.
        regards, tom lane


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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: bloated heapam.h
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Setting a pre-existing index as a primary key