Re: Strict Set Returning Functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strict Set Returning Functions
Date: 2011-06-15 19:05:40
Message-ID: 19657.1308164740@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Simon Riggs <simon(at)2ndQuadrant(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2011-06-15 19:08:58 Re: FK NOT VALID can't be deferrable?
Previous Message Tom Lane 2011-06-15 18:49:04 Re: creating CHECK constraints as NOT VALID