pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: St?phane Chomat <steph_chomat@mac.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Primary key with oid + name : error, which solution ?
Date: Wed, 31 Oct 2001 13:15:18 -0700
Message-ID: <20011031131517.A20380@cc.usu.edu> (raw)
In-Reply-To: <8DADA046-CDDE-11D5-A73B-003065C28650@mac.com>
References: <8DADA046-CDDE-11D5-A73B-003065C28650@mac.com>

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.



view thread (5+ messages)  latest in thread

Message-ID: <20011031131517.A20380@cc.usu.edu>
Permalink:  ../20011031131517.A20380@cc.usu.edu/
Also on:    postgresql.org/message-id/20011031131517.A20380@cc.usu.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rmello@cc.usu.edu, steph_chomat@mac.com
  Subject: Re: Primary key with oid + name : error, which solution ?
  In-Reply-To: <20011031131517.A20380@cc.usu.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox