Re: JOIN query not working as expected - Mailing list pgsql-sql

From Tom Lane
Subject Re: JOIN query not working as expected
Date
Msg-id 227.1133881351@sss.pgh.pa.us
Whole thread Raw
In response to Re: JOIN query not working as expected  (Mario Splivalo <mario.splivalo@mobart.hr>)
List pgsql-sql
Mario Splivalo <mario.splivalo@mobart.hr> writes:
> I can create a FK on a column wich allows NULL values, and I can even
> insert rows with NULLs in FK column, although PK table where FK is
> pointing does not allow nuls. Is that 'by design', or...?

It's per SQL spec.  Add a NOT NULL constraint to the column if you do
not wish to allow NULLs.
        regards, tom lane


pgsql-sql by date:

Previous
From: Mario Splivalo
Date:
Subject: Re: JOIN query not working as expected
Next
From: "Lane Van Ingen"
Date:
Subject: Re: Database with "override" tables