Re: [HACKERS] BUG #2873: Function that returns an empty set - Mailing list pgsql-bugs

From Andrew Dunstan
Subject Re: [HACKERS] BUG #2873: Function that returns an empty set
Date
Msg-id 25886.65.211.31.251.1168360040.squirrel@www.dunslane.net
Whole thread Raw
In response to Re: [HACKERS] BUG #2873: Function that returns an empty set with a 'not null' domain errors in 8.2 but not 8.1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane wrote:

> This is closely related to the discussion a couple weeks ago about how
> a LEFT JOIN could produce nulls in an output column that was labeled as
> having a non-null-domain type.  We haven't figured out what is a sane
> behavior for that case, either.  I'm beginning to think that domains
> constrained not null are just fundamentally a bad idea.
>

I think we just expect left joins to produce nulls regardless of
constraints on the underlying cols, don't we? Concluding that not null in
domains is bad seems a bit drastic.

cheers

andrew



pgsql-bugs by date:

Previous
From: "Kevin Macdonald"
Date:
Subject: BUG #2875: pgAdmin III docs installed even if app is not
Next
From: "(GalaxyMaster)"
Date:
Subject: Re: BUG #2870: incorrect man page for postgres