• T
    Fix oversight in initial implementation of PORTAL_ONE_RETURNING mode: we · 65b2f93b
    Tom Lane 提交于
    cannot assume that there's exactly one Query in the Portal, as we can for
    ONE_SELECT mode, because non-SELECT queries might have extra queries added
    during rule rewrites.  Fix things up so that we'll use ONE_RETURNING mode
    when a Portal contains one primary (canSetTag) query and that query has
    a RETURNING list.  This appears to be a second showstopper reason for running
    the Portal to completion before we start to hand anything back --- we want
    to be sure that the rule-added queries get run too.
    65b2f93b
prepare.c 21.3 KB