X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 35169D1B4F1 for ; Sat, 25 Oct 2003 09:41:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 91877-04 for ; Sat, 25 Oct 2003 06:41:11 -0300 (ADT) Received: from shockwave.systems.pipex.net (shockwave.systems.pipex.net [62.241.160.9]) by svr1.postgresql.org (Postfix) with ESMTP id 66159D1B515 for ; Sat, 25 Oct 2003 06:41:03 -0300 (ADT) Received: from ANYAKA (81-86-131-114.dsl.pipex.com [81.86.131.114]) by shockwave.systems.pipex.net (Postfix) with SMTP id 9B0201C0019B; Sat, 25 Oct 2003 10:41:03 +0100 (BST) From: "Julian North" To: "'Rod Taylor'" Cc: Subject: Re: naming conventions constraint Date: Sat, 25 Oct 2003 10:41:02 +0100 Message-ID: <001801c39adc$1b0411c0$0401a8c0@ANYAKA> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <1067018483.81651.58.camel@jester> Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/333 X-Sequence-Number: 15733 thats just what i needed to know. many many thanks! j. -----Original Message----- From: Rod Taylor [mailto:rbt@rbt.ca] Sent: 24 October 2003 19:01 To: Julian North Cc: pgsql-sql@postgresql.org Subject: Re: naming conventions constraint rbt=# create table bob_is(your_uncle integer, constraint "bob_is#your_uncle" check(true)); CREATE TABLE rbt=# \d bob_is Table "public.bob_is" Column | Type | Modifiers ------------+---------+----------- your_uncle | integer | Check constraints: "bob_is#your_uncle" CHECK true You need to quote strings which contain special characters. On Thu, 2003-10-23 at 16:30, Julian North wrote: > I'm at the very beginning of working with postgres. > > The aim is to replace / build a number of very large and very complex > database currently residing in Oracle, MSSQL and Informix. > > In order to coordinate across a medium size DBA team I instituted a standard > constraint naming convention suitable for the above 3 platforms. > > For example a foreign key would be FK_table#reftable#column. > > Unfortunately I don't appear to be able to use it with postgres. > > This is because I can't use the # character in constraint names. > > Does anybody have any suggestions as to an alternative that is also a single > char? (I'm limited to 30 chars cos of oracle and manyof the current names at > the limit). > > Any help appreciated, > > > > Julian. > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >