Re: Strict Set Returning Functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Strict Set Returning Functions
Date
Msg-id 19657.1308164740@sss.pgh.pa.us
Whole thread Raw
In response to Strict Set Returning Functions  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Strict Set Returning Functions
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> STRICT functions return NULL if any of their inputs are NULL according
> to the manual, so that they need not be executed at all.

> Unless it is a Set Returning Function, in which case a NULL input is
> not reduced nor does it to appear to be handled as a special case in
> the executor function scan code.

> So a function that is both STRICT and SET RETURNING will return rows.

Really?  The case behaves as expected for me.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: creating CHECK constraints as NOT VALID
Next
From: Simon Riggs
Date:
Subject: Re: FK NOT VALID can't be deferrable?