Re: rename constraint

From: Thomas Spreng <spreng(at)socket(dot)ch>
To: sathiya psql <sathiya(dot)psql(at)gmail(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: rename constraint
Date: 2008-04-17 12:14:38
Message-ID: C4496A86-3F18-4ACA-8640-6DD98E2A4AC1@socket.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


On 17.04.2008, at 14:03, sathiya psql wrote:
> Hi,
>
> I need to change the name of the constraint.,
>
> Or i need to drop the constraint, and i need to create constraint
> with new
> name, how the impact of this in performance, because these constraint
> changes am going to do in a table which has 10 million records....

That's how I would do it, create the new constriaint, then drop the
old one.
I'n not aware of any syntax that would allow to rename a constraint.

Cheers,

tom

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Gunther Mayer 2008-04-17 15:42:05 Re: Exact index overhead
Previous Message sathiya psql 2008-04-17 12:03:48 rename constraint