Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 42EF49F96CB for ; Sat, 1 Sep 2007 21:04:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 09977-05 for ; Sat, 1 Sep 2007 21:04:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 998889F96B9 for ; Sat, 1 Sep 2007 21:04:31 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 84C1456435; Sun, 2 Sep 2007 00:04:30 +0000 (UTC) Received: (hashcash-sendmail, from uid 1001); Sat, 1 Sep 2007 19:04:28 -0500 Date: Sat, 1 Sep 2007 19:04:28 -0500 From: Decibel! To: Kevin Kempter Cc: pgsql-admin@postgresql.org Subject: Re: rename a constraint? Message-ID: <20070902000428.GC38801@decibel.org> References: <200708301442.43933.kevin@kevinkempterllc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LhiTpD9feYeyTwZl" Content-Disposition: inline In-Reply-To: <200708301442.43933.kevin@kevinkempterllc.com> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070902:kevin@kevinkempterllc.com::nEMVIgcqLh/i40ng:000000000000 0000000000000000000000003YdE X-Hashcash: 1:20:070902:pgsql-admin@postgresql.org::sWCG8oP7Y4RKMKmM:00000000000 0000000000000000000000001fS7 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/3 X-Sequence-Number: 26764 --LhiTpD9feYeyTwZl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 30, 2007 at 02:42:43PM -0600, Kevin Kempter wrote: > Hi List; >=20 > 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. --=20 Decibel!, aka Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell) --LhiTpD9feYeyTwZl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFG2f4MdO30qud8SkgRAh1PAKC916OUUjdkM/zEiC+ErBXMpOpJkwCfRLm1 d5zE/YzonBwaUF6qgdjI5Ck= =B7c8 -----END PGP SIGNATURE----- --LhiTpD9feYeyTwZl--