• T
    Clean up psql's control-C handling to avoid longjmp'ing out of random · f3164c02
    Tom Lane 提交于
    places --- that risks corrupting data structures, losing sync with the
    backend, etc.  We now longjmp only from calls to readline, fgets, and
    fread, which we assume are coded to protect themselves against interrupts
    at undesirable times.  This requires adding explicit tests for
    cancel_pressed in long-running loops, but on the whole it's far cleaner.
    Martijn van Oosterhout and Tom Lane.
    f3164c02
copy.c 19.0 KB