Re: Patch to add a primary key using an existing index

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Patch to add a primary key using an existing index
Дата
Msg-id 4CF98720.8070002@agliodbs.com
обсуждение исходный текст
Ответ на Re: Patch to add a primary key using an existing index  (Robert Treat <rob@xzilla.net>)
Список pgsql-hackers
On 12/3/10 2:16 PM, Robert Treat wrote:
> Uh, the syntax I posted was based on this currently valid syntax: 
> 
> ALTER TABLE table_name ADD PRIMARY KEY (column_list); 
> 
> The constraint bit is optional, which is why I left it out, but I
> presume it would be optional with the new syntax as well... Also, I'm
> not wedded to the idea of keeping the column list, but if you are
> arguing to make it super consistent, then I think you need to include it.   

No, I'm not in that case.  I'm suggesting we omit the column list and
skip directly to USING.

Why no column list?
1. The extra typing will annoy our users
2. The column list provides opportunities for users to fail to be
consistent with the index and get errors

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


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

Предыдущее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Patch to add a primary key using an existing index
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: could not identify an equality operator for type box