Renaming a constraint - Mailing list pgsql-general

From Csaba Nagy
Subject Renaming a constraint
Date
Msg-id 1202210165.29220.8.camel@PCD12478
Whole thread Raw
Responses Re: Renaming a constraint
List pgsql-general
I found an old post regarding the subject, where modifying the
pg_constraint entry was recommended:

http://archives.postgresql.org/pgsql-admin/2003-04/msg00339.php

Is this still safe to do ? The pertinent docs don't say anything pro or
contra:
http://www.postgresql.org/docs/8.2/static/catalog-pg-constraint.html

I need to rename a few constraints to keep our schema logically
consistent. It would be of course nice to have an ALTER TABLE option to
do it, but if updating pg_constraint is safe it would do it for now.

Thanks,
Csaba.



pgsql-general by date:

Previous
From: Ivan Sergio Borgonovo
Date:
Subject: cursor vs. for _row in select...
Next
From: Csaba Nagy
Date:
Subject: Constraint name for named NOT NULL constraints is ignored