Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 08D09476688 for ; Mon, 25 Feb 2002 12:21:36 -0500 (EST) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.2) with HTTP id 800781; Mon, 25 Feb 2002 09:21:38 -0800 From: "Josh Berkus" Subject: Re: About referential integrity. To: BOURIAUD , pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.2 Date: Mon, 25 Feb 2002 09:21:38 -0800 Message-ID: In-Reply-To: <200202251503.g1PF3vn21366@necker.ac-rouen.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200202/361 X-Sequence-Number: 6783 David, > Anyway, I don't understand why when tables are built with this > referential > integrity the back-end doesn't fullfill any request posted on those > tables. Short answer: Because the international specifications for relational databases, SQL-92 and/or SQL-99, do not work that way. Longer Answer: You can use: SELECT * FROM t1 NATURAL JOIN t2; ... to get the functionality you are talking about (provided that the foriegn key reference has the same name in both tables). -Josh