From: Jan Wieck <janwieck@yahoo.com>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] VIEWs and FOREIGN keys
Date: Mon, 10 Jun 2002 13:20:10 -0400 (EDT)
Message-ID: <200206101720.g5AHKAK29836@saturn.janwieck.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0206101434540.10675-100000@matrix.gatewaynet.com>
Achilleus Mantzios wrote:
>
> can someone have a foreign key constraint that references
> a view??
No, and this is not planned either. Remember that it is not
only required for referential integrity to check if a key
exists on INSERT or UPDATE to the referencing table. The
system must guarantee that you cannot remove existing keys
while they are referenced (or more precise perform the
requested referential action).
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: janwieck@yahoo.com, achill@matrix.gatewaynet.com, pgsql-general@postgresql.org
Subject: Re: [SQL] VIEWs and FOREIGN keys
In-Reply-To: <200206101720.g5AHKAK29836@saturn.janwieck.net>
References: <Pine.LNX.4.44.0206101434540.10675-100000@matrix.gatewaynet.com> <200206101720.g5AHKAK29836@saturn.janwieck.net>
* 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