Re: question on renaming a foreign key

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: question on renaming a foreign key
Date: 2006-10-12 00:15:00
Message-ID: 20061012001500.39795.qmail@web31804.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> >> I doesn't appear that ALTER TABLE can change constraint
> >> characteristics. You'd have to drop/recreate, no?
> >
> > Now that you mention it, I've never tried it or seen it done.
> > Here I what I came up with:
> >
> [snip]
> >
> >
> > It is nice to see things work so well. :-)
>
> It would be interesting to see how well it works on a 50M row table.

Good point, but hopefully only small fraction of the 50 M rows would be affected and hopefully
updating primary keys isn't a common occurrence.

Regards,

Richard Broersma Jr.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2006-10-12 00:33:49 Re: more anti-postgresql FUD
Previous Message Geoffrey 2006-10-12 00:10:22 Re: more anti-postgresql FUD