Strict Set Returning Functions

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Strict Set Returning Functions
Date: 2011-06-15 17:03:59
Message-ID: BANLkTin5vFYDm15Tb0RRiLcdjSg42YG1gQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Presumably this is just a case of missing documentation?

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2011-06-15 17:06:40 Re: creating CHECK constraints as NOT VALID
Previous Message Robert Haas 2011-06-15 16:53:59 Re: creating CHECK constraints as NOT VALID