Re: Strict Set Returning Functions
От
Tom Lane
Тема
Re: Strict Set Returning Functions
Дата
Msg-id
9795.1308180259@sss.pgh.pa.us
Ответ на
Re: Strict Set Returning Functions (Simon Riggs)
Список
Дерево обсуждения
Strict Set Returning Functions Simon Riggs <simon@2ndQuadrant.com>
Re: Strict Set Returning Functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Strict Set Returning Functions Simon Riggs <simon@2ndQuadrant.com>
Re: Strict Set Returning Functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Strict Set Returning Functions Simon Riggs <simon@2ndQuadrant.com>
Simon Riggs writes: > On Wed, Jun 15, 2011 at 8:05 PM, Tom Lane wrote: >> Simon Riggs 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
В списке pgsql-hackers по дате отправления