Received: from iremia.univ-reunion.fr (iremia.univ-reunion.fr [194.199.73.10]) by hub.org (8.9.3/8.9.3) with ESMTP id SAA25228 for ; Sun, 27 Feb 2000 18:21:44 -0500 (EST) (envelope-from Guillaume.Rousse@univ-reunion.fr) Received: from agathe ([10.10.2.24]) by iremia.univ-reunion.fr (8.9.1a/jtpda-5.3.1/jlo(98)) with SMTP id DAA14018 for ; Mon, 28 Feb 2000 03:21:11 +0400 (GMT+4) From: Guillaume Rousse Organization: Université de la Réunion To: pgsql-interfaces@postgreSQL.org Subject: Just to be sure... Date: Mon, 28 Feb 2000 03:27:55 +0400 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00022803280200.19453@agathe> Content-Transfer-Encoding: 8bit I've some question about PostgreSQL object-orientations, as explained in the JDBC prgramming manual (extended Postrgres API). You can use table A as a type for a field in table B like this : create table A (foo text); create table B (fee B); This ensure 1-to-n relation between A and B like classical B foreign key linked to A primary Key, with relational constraint morevoer : you can't delete any tuple in A still linked to in B. Am i right to this point ? Ok, here's what seems to be impossible : - Declare a field as an array of another table, so as to have a n-to-n relationship. I've tried create B (fee B[]), it doesn't function. - Declare a recursive declaration. I tried create table A(foo A), it doesn't function either. -- Guillaume Rousse Iremia - Université de la Réunion 15 avenue René Cassin, BP 7151 97715 Saint Denis, messagerie cedex 9 Tel:0262938330 Fax:0262938260 ICQ:10756815 BRIDGEKEEPER: What... is the air-speed velocity of an unladen swallow? ARTHUR: What do you mean? An African or European swallow?