aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-08 22:18:18 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-08 22:18:18 +0000
commit20c20dfeec4420d0c63ae29c950281cb70f64c39 (patch)
tree97b6d21768c2cb464bc978b8b2ec0322927eba76 /src/backend/access/gist
parent99772d6465191b360f099d75ace760dc97ec9fcb (diff)
downloadpostgresql-20c20dfeec4420d0c63ae29c950281cb70f64c39.tar.gz
postgresql-20c20dfeec4420d0c63ae29c950281cb70f64c39.zip
Fix performance bug in write_syslog(): the code to preferentially break the
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.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions