From: Fabio Mancinelli <mancinel@univaq.it>
To: David Jackson <cjamblue@smokies.amnix.com>
Cc: pgsql-novice@hub.org
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Foreign Key ??
Date: Mon, 9 Nov 1998 10:49:36 +0100 (MET)
Message-ID: <Pine.GSO.3.96.981109104539.6800A-100000@brutus> (raw)
In-Reply-To: <Pine.BSF.3.96.981108094812.14737A-100000@smokies.amnix.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mancinel@univaq.it, cjamblue@smokies.amnix.com, pgsql-novice@hub.org, pgsql-sql@hub.org
Subject: Re: [SQL] Foreign Key ??
In-Reply-To: <Pine.GSO.3.96.981109104539.6800A-100000@brutus>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox