RI and NULL's - Mailing list pgsql-hackers

From wieck@debis.com (Jan Wieck)
Subject RI and NULL's
Date
Msg-id m11UASn-0003kLC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
Responses Re: [HACKERS] RI and NULL's
List pgsql-hackers
One more question:

    I'm planning to create generic trigger procs for PK/FK stuff.
    So that it's simply insert/delete the appropriate  pg_trigger
    entries during CREATE/ALTER table.

    Assuming  NULL's  are  allowed  in FK values (are they?), I'd
    like to know what the correct handling of NULL values is.  If
    an  attribute  of the FK has the NULL value, must a PK with a
    NULL  in  the  corresponding  attribute  exist  or  is   this
    attribute  completely  left  out  of  the WHERE clause in the
    check?

    Other way round -  NULL  value  in  attribute  of  referenced
    table.   What  to  delete  from  FK  in the case of ON DELETE
    CASCADE?


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#========================================= wieck@debis.com (Jan Wieck) #

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Compile timing
Next
From: wieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] Problem with new function