]> 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:10 +0000 (15:05 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 4 Apr 2012 19:05:10 +0000 (15:05 -0400)
commitc17e863bc7677a54d6da5bbb2868cca2cd9b30c1
treec29bdd9ceb347de2a2b9890fea2de50b2069132f
parentd843ed21164275dfbfefa486bb00bca91380cdf0
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