• Tom Lane's avatar
    _SPI_execute_plan failed to return result tuple table to caller in · 1b61ee3c
    Tom Lane authored
    the ProcessUtility case, resulting in an intratransaction memory leak
    if a utility command actually did return any tuples, as reported by
    Dmitry Karasik.  Fix this and also make the behavior more consistent
    for cases involving nested SPI operations and multiple query trees,
    by ensuring that we store the state locally until it is ready to be
    returned to the caller.
    1b61ee3c
spi.c 41.3 KB