git.postgresql.org Git - postgresql.git/commit
Tue, 8 Jul 2008 22:17:41 +0000 (22:17 +0000)
Tue, 8 Jul 2008 22:17:41 +0000 (22:17 +0000)
commit 3793310286546f12bfae9632c81bfaee67a913c1
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.
This is the main PostgreSQL git repository.
RSS
Atom