aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-08 22:17:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-08 22:17:41 +0000
commit3793310286546f12bfae9632c81bfaee67a913c1 (patch)
treec1d3a51effc980910c5e653239d4b934dd688ee0 /src/backend/access/gist/gistutil.c
parentcac2f697ee21125cbe299810c8155dfb463cd7f7 (diff)
downloadpostgresql-3793310286546f12bfae9632c81bfaee67a913c1.tar.gz
postgresql-3793310286546f12bfae9632c81bfaee67a913c1.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/gistutil.c')
0 files changed, 0 insertions, 0 deletions