]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix syslogger to not lose log coherency under high load.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 4 Apr 2012 19:05:16 +0000 (15:05 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 4 Apr 2012 19:05:16 +0000 (15:05 -0400)
commit60243e89a707bb141aa1b164c2d6fb59e3e22408
tree858c890483f402d35f4276a8c81478e050c23ede
parent8d2a5fb219aab954fe6642a2c1abdaa058ddeaef
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