RI and NULL's
От | wieck@debis.com (Jan Wieck) |
---|---|
Тема | RI and NULL's |
Дата | |
Msg-id | m11UASn-0003kLC@orion.SAPserv.Hamburg.dsh.de обсуждение исходный текст |
Ответы |
Re: [HACKERS] RI and NULL's
|
Список | 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 по дате отправления: