• Peter Eisentraut's avatar
    Wrap PL/Python SPI calls into subtransactions · 0c5933d0
    Peter Eisentraut authored
    This allows the language-specific try/catch construct to catch and
    handle exceptions arising from SPI calls, matching the behavior of
    other PLs.
    
    As an additional bonus you no longer get all the ugly "unrecognized
    error in PLy_spi_execute_query" errors.
    
    Jan Urbański, reviewed by Steve Singer
    0c5933d0
plpython.c 94.6 KB