X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 21D0CD1B386 for ; Thu, 10 Jun 2004 03:32:19 -0300 (ADT) 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 46699-03 for ; Thu, 10 Jun 2004 06:32:18 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 29742D1B37E for ; Thu, 10 Jun 2004 03:32:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i5A6WERX020686; Thu, 10 Jun 2004 02:32:14 -0400 (EDT) To: Peter Eisentraut Cc: Kyle , pgsql-sql@postgresql.org Subject: Re: Getting FK relationships from information_schema In-reply-to: <200406090836.25473.peter_e@gmx.net> References: <40C500D8.9060009@actarg.com> <40C5D790.6090407@actarg.com> <16089.1086757487@sss.pgh.pa.us> <200406090836.25473.peter_e@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Wed, 09 Jun 2004 08:36:25 +0200" Date: Thu, 10 Jun 2004 02:32:14 -0400 Message-ID: <20685.1086849134@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/78 X-Sequence-Number: 18023 Peter Eisentraut writes: > Tom Lane wrote: >> We have discussed changing the default names of FK constraints >> before. I have no problem with doing something like the above --- any >> objection out there? > I think it's a good idea. It will also make the error messages of the > kind "foreign key $1 violated" a bit clearer by default. Right ho --- I'm working on a patch that will choose default names of the form table_column_checkN and table_column_fkeyN, similar to what we already do for index constraints. regards, tom lane