Re: VIEWs and FOREIGN keys - Mailing list pgsql-sql

From Jan Wieck
Subject Re: VIEWs and FOREIGN keys
Date
Msg-id 200206101720.g5AHKAK29836@saturn.janwieck.net
Whole thread Raw
In response to VIEWs and FOREIGN keys  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Responses Re: [GENERAL] VIEWs and FOREIGN keys  (terry@greatgulfhomes.com)
List pgsql-sql
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 #



pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Efficient DELETE Strategies
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Efficient DELETE Strategies