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

Поиск
Список
Период
Сортировка
Искать
От
Andrew Dunstan
Тема
Re: Setting a pre-existing index as a primary key
Дата
в 14:25:40
Msg-id
48287D86.8030908@dunslane.net
Ответ на
Список
Дерево обсуждения
Setting a pre-existing index as a primary key "Jonah H. Harris" <jonah.harris@gmail.com>
Re: Setting a pre-existing index as a primary key Tom Lane <tgl@sss.pgh.pa.us>
Re: Setting a pre-existing index as a primary key "Jonah H. Harris" <jonah.harris@gmail.com>
Re: Setting a pre-existing index as a primary key "Jaime Casanova" <systemguards@gmail.com>
Re: Setting a pre-existing index as a primary key Mario Weilguni <mweilguni@sime.com>
Re: Setting a pre-existing index as a primary key Bruce Momjian <bruce@momjian.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 Tom Lane <tgl@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 Tom Lane <tgl@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 Bruce Momjian <bruce@momjian.us>
Re: Setting a pre-existing index as a primary key Tom Lane <tgl@sss.pgh.pa.us>
Re: Setting a pre-existing index as a primary key Andrew Dunstan <andrew@dunslane.net>
Re: Setting a pre-existing index as a primary key Tom Lane <tgl@sss.pgh.pa.us>
Re: Setting a pre-existing index as a primary key Andrew Sullivan <ajs@commandprompt.com>
Re: Setting a pre-existing index as a primary key David Fetter <david@fetter.org>
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 "Jonah H. Harris" <jonah.harris@gmail.com>
Re: Setting a pre-existing index as a primary key Gregory Stark <stark@enterprisedb.com>
Re: Setting a pre-existing index as a primary key "Jonah H. Harris" <jonah.harris@gmail.com>
Re: Setting a pre-existing index as a primary key Andrew Dunstan <andrew@dunslane.net>
Re: Setting a pre-existing index as a primary key Tom Lane <tgl@sss.pgh.pa.us>
Re: Setting a pre-existing index as a primary key Andrew Dunstan <andrew@dunslane.net>
Re: Setting a pre-existing index as a primary key Tino Wildenhain <tino@wildenhain.de>


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
Дата:
FAQ