| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
|---|---|
| To: | marie(dot)tuite(at)edisonaffiliates(dot)com | 
| Cc: | "Pgsql-Sql(at)Postgresql(dot) Org" <pgsql-sql(at)postgresql(dot)org> | 
| Subject: | Re: drop constraint primary key | 
| Date: | 2002-10-03 17:09:38 | 
| Message-ID: | 10247.1033664978@sss.pgh.pa.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-sql | 
"Marie G. Tuite" <marie(dot)tuite(at)edisonaffiliates(dot)com> writes:
> Running above, am trying to drop the primary key, but get the follwing
> error.
> project=# alter table class_teacher_rlt drop constraint
> class_teacher_rlt_pkey restrict;
> ERROR:  ALTER TABLE / DROP CONSTRAINT: class_teacher_rlt_pkey does not exist
In 7.2 DROP CONSTRAINT only works for CHECK-type constraints; you'll
have to drop the underlying index directly to get rid of a
primary-key-type constraint.
7.3 does allow DROP CONSTRAINT for this.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ron Johnson | 2002-10-03 17:38:49 | Re: Large databases, performance | 
| Previous Message | Manfred Koizar | 2002-10-03 16:53:32 | Re: [HACKERS] Large databases, performance |