• Tom Lane's avatar
    Miscellaneous cleanup of regular-expression compiler. · afdfcd3f
    Tom Lane authored
    Revert our previous addition of "all" flags to copyins() and copyouts();
    they're no longer needed, and were never anything but an unsightly hack.
    
    Improve a couple of infelicities in the REG_DEBUG code for dumping
    the NFA data structure, including adding code to count the total
    number of states and arcs.
    
    Add a couple of missed error checks.
    
    Add some more documentation in the README file, and some regression tests
    illustrating cases that exceeded the state-count limit and/or took
    unreasonable amounts of time before this set of patches.
    
    Back-patch to all supported branches.
    afdfcd3f
regcomp.c 54.5 KB