• Bruce Momjian's avatar
    The attached patch implements spi_query() and spi_fetchrow() functions · 6d92f210
    Bruce Momjian authored
    for PL/Perl, to avoid loading the entire result set into memory as the
    existing spi_exec_query() function does.
    
    Here's how one might use the new functions:
    
        $x = spi_query("select ...");
        while (defined ($y = spi_fetchrow($x))) {
            ...
            return_next(...);
        }
    
    The changes do not affect the spi_exec_query() interface in any way.
    
    Abhijit Menon-Sen
    6d92f210
SPI.xs 2.03 KB