Simon Riggs <si...@2ndquadrant.com> writes:
> On Wed, Jun 15, 2011 at 8:05 PM, Tom Lane <t...@sss.pgh.pa.us> wrote:
>> Simon Riggs <si...@2ndquadrant.com> writes:
>>> So a function that is both STRICT and SET RETURNING will return rows.

>> Really?  The case behaves as expected for me.

> Seems that's the wrong question. Let me return to why I raised this:

> Why does evaluate_function() specifically avoid returning NULL for a
> set returning function?

Because replacing the SRF call with a constant NULL would produce the
wrong result, ie, a single row containing NULL, not zero rows.

                        regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to