aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-08 22:17:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-08 22:17:55 +0000
commitc3c76c2de3b16b94ebe6f236400b753242937e68 (patch)
treeecc6af526873dd07d8ffb5d3ada83203295e0e2c /src/backend/access/gist
parent1b3dfb041a63d0f8d4ef8618b04b80fcedb8b4d7 (diff)
downloadpostgresql-c3c76c2de3b16b94ebe6f236400b753242937e68.tar.gz
postgresql-c3c76c2de3b16b94ebe6f236400b753242937e68.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