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 06B5DD1B4EF for ; Thu, 23 Oct 2003 20:31:47 +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 33410-08 for ; Thu, 23 Oct 2003 17:31:17 -0300 (ADT) Received: from shockwave.systems.pipex.net (shockwave.systems.pipex.net [62.241.160.9]) by svr1.postgresql.org (Postfix) with ESMTP id 5E2A9D1B548 for ; Thu, 23 Oct 2003 17:30:59 -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 1A7F71C01E6D for ; Thu, 23 Oct 2003 21:31:00 +0100 (BST) From: "Julian North" To: Subject: naming conventions constraint Date: Thu, 23 Oct 2003 21:30:59 +0100 Message-ID: <001901c399a4$92145c40$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) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200310/325 X-Sequence-Number: 15725 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.