Re: FK issue - Mailing list pgsql-general

From Tom Lane
Subject Re: FK issue
Date
Msg-id 25334.1086883253@sss.pgh.pa.us
Whole thread Raw
In response to FK issue  (mike <mike@bristolreccc.co.uk>)
List pgsql-general
mike <mike@bristolreccc.co.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

pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: encrypted passwords
Next
From: "Uwe C. Schroeder"
Date:
Subject: Re: FK issue