mike <mike(at)bristolreccc(dot)co(dot)uk> writes:> INSERT INTO lk_sort_of_contact (type_code) VALUES ('1') (ie: a NULL into> the FK) it works
> Is this a bug?
No. Mark the column NOT NULL if you wish to disallow nulls.
regards, tom lane