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