postgres-github.git / summary / log / commit / refs

commit    207cb2abcba00f78d57cdaca896f41c9453b0f2f
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Mon Apr 20 14:21:52 2026 +0000

    Make ExecForPortionOfLeftovers() obey SRF protocol.
    
    Before each call to the SRF, initialize isnull and isDone, as per the
    comments for struct ReturnSetInfo.  This fixes a Coverity warning
    about rsi.isDone not being initialized.  The built-in
    {multi,}range_minus_multi functions don't return without setting it,
    but a user-supplied function might not be as accommodating.
    
    We also add statistics tracking around the function call, which
    will be expected once user-defined withoutPortionProcs functions
    are supported, and a cross-check on rsi.returnMode just for
    paranoia's sake.
    
    Author: Tom Lane <tgl@sss.pgh.pa.us>
    Co-authored-by: Paul A Jungwirth <pj@illuminatedcomputing.com>
    Discussion: https://postgr.es/m/4126231.1776622202@sss.pgh.pa.us

[parent: 5dbb63fc82b7]