Renaming a constraint

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Renaming a constraint
Date: 2008-02-05 11:16:05
Message-ID: 1202210165.29220.8.camel@PCD12478
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2008-02-05 11:50:10 Constraint name for named NOT NULL constraints is ignored
Previous Message Ivan Sergio Borgonovo 2008-02-05 10:28:34 cursor vs. for _row in select...