]> granicus.if.org Git - postgresql/commit
Fix syslogger to not lose log coherency under high load.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 4 Apr 2012 19:05:30 +0000 (15:05 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 4 Apr 2012 19:05:30 +0000 (15:05 -0400)
commit260b119c584775b389bb5af3bf3704b03ab35416
tree0b7ace17cb2685d7a138f7493c628b9c31a5a543
parent230e779f58e937834902501b28704a13f47f2d57
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
src/backend/postmaster/syslogger.c