pgsql: Fix syslogger to not lose log coherency under high load. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix syslogger to not lose log coherency under high load.
Date
Msg-id E1SFVXM-0001dB-7n@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/60243e89a707bb141aa1b164c2d6fb59e3e22408

Modified Files
--------------
src/backend/postmaster/syslogger.c |  132 +++++++++++++++++++-----------------
1 files changed, 71 insertions(+), 61 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix syslogger to not lose log coherency under high load.
Next
From: Tom Lane
Date:
Subject: pgsql: Remove useless PGRES_COPY_BOTH "support" in psql.