Re: Primary key with oid + name : error, which solution ?

Поиск
Список
Период
Сортировка
От Roberto Mello
Тема Re: Primary key with oid + name : error, which solution ?
Дата
Msg-id 20011031131517.A20380@cc.usu.edu
обсуждение исходный текст
Ответ на Primary key with oid + name : error, which solution ?  (Stéphane Chomat <steph_chomat@mac.com>)
Список pgsql-sql
On Wed, Oct 31, 2001 at 10:06:22AM +0100, St?phane Chomat wrote:
> I create two table repertory and person. And i have an error : 
>   
> > CREATE TABLE repertory (name_rep name, attribut text[], PRIMARY 
> KEY(name_rep)); 
> > CREATE TABLE person (nam_rep repertory, name_pers text, url text, 
> eadr text, tel text, attribut text[], PRIMARY KEY(name_pers,nam_rep)); 
> 
> NOTICE:  CREATE TABLE/PRIMARY KEY will create implicit index 
> 'person_pkey' for table 'person' 
> ERROR:  DefineIndex: type repertory has no default operator class 

Unless it's some OO extension in PostgreSQL that I don't know about, I
have never heard of the type "repertory" and "name". I don't think you
can use your table name as a data type.

BTW, you should also stay away from arrays (IMHO), since they are
non-standard.

-Roberto
-- 
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+ Roberto Mello - Computer Science, USU -
http://www.brasileiro.net      http://www.sdl.usu.edu - Space Dynamics Lab, Developer    
 
NY cops go bar-hopping; LA cops go night-clubbing.


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

Предыдущее
От: "James Orr"
Дата:
Сообщение: Re: transposing data for a view
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: transposing data for a view