RE: DROP CONSTRAINT (UNIQUE) preliminary support

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Patches" <pgsql-patches(at)postgresql(dot)org>
Subject: RE: DROP CONSTRAINT (UNIQUE) preliminary support
Date: 2001-07-10 01:30:51
Message-ID: ECEHIKNFIMMECLEBJFIGCEDJCBAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> Christopher, where are we on this patch?

No-one commented on it. It's not a committable patch, it was basically to
get some feedback to see if I was going in the right direction.

Since then, I decided to complete the ADD CONSTRAINT stuff first. I've
_almost_ finished ADD UNIQUE and ADD PRIMARY. I'll probably submit a patch
for those in the next couple of days. After that I'll worry about DROP
CONSTRAINT again.

Chris

> > Hi all,
> >
> > This patch allows ALTER TABLE/DROP CONSTRAINT to drop UNIQUE
> constraints by
> > dropping the relevant index.
> >
> > This is a prelim patch that I need comment on (The @@
> comments), and I've
> > edited some things out by hand, so I don't recommend applying
> it to anything
> > just yet.
> >
> > I have added an IsIndex function to indexcmds.c and a
> RemoveUniqueConstraint
> > to heap.c, plus modified command.c's AlterTableDropConstraint
> function to
> > call RemoveUniqueConstraint.
> >
> > Note that I have disabled inheritance support for unique
> constraints - since
> > it's impossible to have two indices of the same name anyway...
> >
> > Comments please.
> >
> > Chris
>
> [ Attachment, skipping... ]
>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Mike Castle 2001-07-10 01:46:10 Re: Re: Backups WAS: 2 gig file size limit
Previous Message Joseph Shraibman 2001-07-10 01:22:21 Re: Patch to remove connection hook and JDK 1.3 dependencies