Re: Renaming a constraint's index

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-hackers(at)postgreSQL(dot)org>,"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Renaming a constraint's index
Date: 2008-01-17 21:58:06
Message-ID: 478F7B0E.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>> On Wed, Jan 16, 2008 at 5:20 PM, in message <29518(dot)1200525640(at)sss(dot)pgh(dot)pa(dot)us>,
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> 2. Make ALTER INDEX RENAME automatically rename the constraint, too.

> 3. Invent an ALTER TABLE RENAME CONSTRAINT command, and have it also
> rename the underlying index.

> I'm thinking about doing #2 for 8.3 and leaving #3 as a TODO item.

+1

Something should be done for 8.3 to prevent unusable dumps.
The absence of primary key rename has been mildly annoying at times.
I don't see any problem with allowing it to work both ways.

-Kevin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2008-01-17 22:06:38 Re: Simple thing to make pg_autovacuum more useful
Previous Message Tom Lane 2008-01-17 21:54:47 Re: Simple thing to make pg_autovacuum more useful