X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 371C45E48CA; Mon, 6 Sep 2004 15:02:55 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19849-06; Mon, 6 Sep 2004 14:02:53 +0000 (GMT) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id EF5A85E48DF; Mon, 6 Sep 2004 15:02:49 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id 3261D22A37; Mon, 6 Sep 2004 17:01:16 +0300 (EEST) Received: from forge (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id 5CB8B210A0; Mon, 6 Sep 2004 17:01:15 +0300 (EEST) Message-ID: <023201c4941a$3ade6350$0b00a8c0@forge> From: "Andrei Bintintan" To: , Subject: How to rename a constraint/trigger?? Date: Mon, 6 Sep 2004 17:03:02 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_022F_01C49433.5E74EAA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2741.2600 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=HTML_40_50, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200409/54 X-Sequence-Number: 14757 This is a multi-part message in MIME format. ------=_NextPart_000_022F_01C49433.5E74EAA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi to all, I have a database, where in the tables I have around 100 constrains (link t= o other tables) that don't have a name "" or they have a name like= "$1" "$2". Now, I have a module which bases on the same structure, but I g= et some query errors from a "" constraint. I really don't know exa= clty which the constrain generates the error, in that table I have 12 such= constrains.=20 Does anyone have a script or it exist a command so that I can rename all th= e ""constrains in this database?=20 I'm using postgre 7.3.2. Thankx, Andy. ------=_NextPart_000_022F_01C49433.5E74EAA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi = to=20 all,
 
I have a database, where in the tables I h= ave=20 around 100 constrains (link to other tables) that don't have a name=20 "<unnamed>" or they have a name like "$1" "$2". Now, I have a module = which=20 bases on the same structure, but I get some query errors from a=20 "<unnamed>" constraint. I really don't know exaclty  which the= =20 constrain generates the error, in that table I have 12 such constrains= .=20
 
Does anyone have a script or it exist= a=20 command so that I can rename all the "<unnamed>"constrains in this=20 database?
 
I'm using postgre 7.3.2.
 
Thankx,
Andy.
 
 
------=_NextPart_000_022F_01C49433.5E74EAA0--