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

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Setting a pre-existing index as a primary key
Дата
Msg-id 48287D86.8030908@dunslane.net
обсуждение исходный текст
Ответ на Re: Setting a pre-existing index as a primary key  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

Tom Lane wrote:
> BTW, aside from selecting the index the command would have to verify
> that the indexed columns are all NOT NULL.  We could either have it
> just throw an error if they aren't, or have it silently try to do
> an ALTER SET NOT NULL, which would require a table scan.
>
> I'm going to argue for the "just throw an error" choice.  I don't like
> the idea of a utility command that takes exclusive lock and then is
> either near-instantaneous or slow depending on factors not immediately
> obvious.
>
>             
>   

+1

cheers

andrew


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Proposal: Integrity check
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Syntax decisions for pl/pgsql RAISE extension