pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Decibel! <decibel@decibel.org>
To: Kevin Kempter <kevin@kevinkempterllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: rename a constraint?
Date: Sat, 1 Sep 2007 19:04:28 -0500
Message-ID: <20070902000428.GC38801@decibel.org> (raw)
In-Reply-To: <200708301442.43933.kevin@kevinkempterllc.com>
References: <200708301442.43933.kevin@kevinkempterllc.com>

On Thu, Aug 30, 2007 at 02:42:43PM -0600, Kevin Kempter wrote:
> Hi List;
> 
> Is there a method/syntax I can use to rename a constraint ?

Not an official one, no... you'll need to create a new one then drop the
old (don't do it the other way or it'll have to re-check everything).

You might also be able to UPDATE the appropriate catalog, but I'm not
sure how safe that is.
-- 
Decibel!, aka Jim Nasby                        decibel@decibel.org
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

view thread (2+ messages)

Message-ID: <20070902000428.GC38801@decibel.org>
Permalink:  ../20070902000428.GC38801@decibel.org/
Also on:    postgresql.org/message-id/20070902000428.GC38801@decibel.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: decibel@decibel.org, kevin@kevinkempterllc.com
  Subject: Re: rename a constraint?
  In-Reply-To: <20070902000428.GC38801@decibel.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox