Received: from univaq.it (mailhost.univaq.it [192.150.195.13]) by hub.org (8.9.1/8.9.1) with ESMTP id EAA29694; Mon, 9 Nov 1998 04:57:00 -0500 (EST) (envelope-from mancinel@univaq.it) Received: from brutus by univaq.it (8.8.8+Sun/SMI-SVR4) id KAA13763; Mon, 9 Nov 1998 10:50:24 +0100 (MET) Date: Mon, 9 Nov 1998 10:49:36 +0100 (MET) From: Fabio Mancinelli X-Sender: mancinel@brutus To: David Jackson cc: pgsql-novice@hub.org, pgsql-sql@hub.org Subject: Re: [SQL] Foreign Key ?? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 8 Nov 1998, David Jackson wrote: > CONSTRAINT NAME_FK FOREIGN KEY (client_name) > REFERENCES client(client_name) > ); > This results in FUNCTION NOT IMPLETEMENTED error. > Yes, that's true. There is no built-in referential integrity in PostgresSQL. Anyway there are two "external" functions in the contrib/spi directory which implement the referential integrity. You can use these functions via triggers. All the docs and the sources are in the contrib/spi dir in the source code distribution (v6.4), I don't remember if they are also available in the v6.3 source code distibution. Bye. ------------------------------------------------------------------------------ Greetings from Fabio Mancinelli E-Mail : mancinel@univaq.it Computer Science Student xenon@olografix.org University of L'Aquila WWW : http://univaq.it/~mancinel (PGP Public Key available) http://www.olografix.org/xenon