Home > Archive > Pgadmin > November 2005 > [1.4rc1] Can't rename constraint









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [1.4rc1] Can't rename constraint
Chris

2005-11-08, 4:13 pm

How do I rename a constraint?

I'm only doing this because I can't change the type of a column from char(30) to
varchar(64). So I renamed to original table, but the constraints seems to be
globally unique. I don't know why, but this simple exercise of changing a column
type is getting very messy and time consuming.

What I'm trying to do now is rename the table, create a new table with the
desired column definition and then add one table from the other, then drop the
old table.


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Andreas Pflug

2005-11-09, 7:24 am

Chris wrote:
> How do I rename a constraint?


You can't. Drop and recreate it.

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com