FK issue - Mailing list pgsql-general

From mike
Subject FK issue
Date
Msg-id 1086880913.12907.2.camel@datacc
Whole thread Raw
Responses Re: FK issue  (Doug McNaught <doug@mcnaught.org>)
Re: FK issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: FK issue  ("Uwe C. Schroeder" <uwe@oss4u.com>)
List pgsql-general
I have set up a FK as follows

ALTER TABLE lk_sub_con ADD FOREIGN KEY (type) REFERENCES
lk_sort_of_contact(type_code);

However when I do this

INSERT INTO lk_sort_of_contact (type_code) VALUES ('1') (ie: a NULL into
the FK) it works

Is this a bug?

pgsql-general by date:

Previous
From: Milos Prudek
Date:
Subject: Re: encrypted passwords
Next
From: Doug McNaught
Date:
Subject: Re: FK issue