Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 4020D4763E5 for ; Mon, 10 Jun 2002 14:13:43 -0400 (EDT) Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by postgresql.org (Postfix) with SMTP id 6EE69476099 for ; Mon, 10 Jun 2002 13:22:13 -0400 (EDT) Received: from psc.progress.com (HELO saturn.janwieck.net) (janwieck@192.233.92.200 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 10 Jun 2002 17:22:13 -0000 Received: (from wieck@localhost) by saturn.janwieck.net (8.11.2/8.11.2) id g5AHKAK29836; Mon, 10 Jun 2002 13:20:10 -0400 From: Jan Wieck Message-Id: <200206101720.g5AHKAK29836@saturn.janwieck.net> Subject: Re: [SQL] VIEWs and FOREIGN keys In-Reply-To: from Achilleus Mantzios at "Jun 10, 2002 03:09:05 pm" To: Achilleus Mantzios Date: Mon, 10 Jun 2002 13:20:10 -0400 (EDT) Cc: pgsql-general@postgresql.org, pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200206/283 X-Sequence-Number: 25435 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 #