• Tom Lane's avatar
    Fix performance bug in write_syslog(): the code to preferentially break the · 37933102
    Tom Lane authored
    log message at newlines cost O(N^2) for very long messages with few or no
    newlines.  For messages in the megabyte range this became the dominant cost.
    Per gripe from Achilleas Mantzios.
    
    Patch all the way back, since this is a safe change with no portability
    risks.  I am also thinking of increasing PG_SYSLOG_LIMIT, but that should
    be done separately.
    37933102
elog.c 63.8 KB