Fix syslogger to not lose log coherency under high load.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9b4d973af090694d3128a51b709c61f5a1ecc80f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-04-04T19:05:25Z
Releases: 9.0.8
Fix syslogger to not lose log coherency under high load.

The original coding of the syslogger had an arbitrary limit of 20 large
messages concurrently in progress, after which it would just punt and dump
message fragments to the output file separately.  Our ambitions are a bit
higher than that now, so allow the data structure to expand as necessary.

Reported and patched by Andrew Dunstan; some editing by Tom

Files

PathChange+/−
src/backend/postmaster/syslogger.c modified +71 −61