Re: Old protocol fastpath calls borked? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Old protocol fastpath calls borked?
Date
Msg-id 4191.1548368336@sss.pgh.pa.us
Whole thread Raw
In response to Re: Old protocol fastpath calls borked?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> Ah, brainfade.  Probably triggered by the fact that I forgot that we call
> input functions even on NULL (which never quite made sense to me).

That's so that domain_in can reject NULLs if the domain constraints
say to do so.

Mind you, the SQL committee should never have allowed NOT NULL
domain constraints in the first place, because the concept is
fundamentally incompatible with outer joins.  But it's there
and we try to honor it in this case.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Old protocol fastpath calls borked?
Next
From: Thomas Munro
Date:
Subject: Re: [PATCH] Fix Proposal - Deadlock Issue in Single User Mode When IOFailure Occurs