| От | Heikki Linnakangas |
|---|---|
| Тема | Re: Patch to add a primary key using an existing index |
| Дата | |
| Msg-id | 4CF94D31.4000607@enterprisedb.com обсуждение исходный текст |
| Ответ на | Re: Patch to add a primary key using an existing index (Alvaro Herrera <alvherre@commandprompt.com>) |
| Список | pgsql-hackers |
On 03.12.2010 21:58, Alvaro Herrera wrote: > Excerpts from Heikki Linnakangas's message of vie dic 03 16:45:59 -0300 2010: > >> ALTER TABLE table_name SET PRIMARY KEY USING INDEX index_name. Quite >> verbose, but imho USING makes it much more clear that it's an existing >> index. > > I was going to post the same thing (well except I was still thinking in > ADD PRIMARY KEY rather than SET PRIMARY KEY). I think SET is better > than ADD in that it is a bit different from the syntax that makes it > create a new index. On the other hand, it could also be pointlessly > annoying. I think I'd prefer ADD too. I didn't pay attention to that when I posted. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера