Re: Full statement logging problematic on larger machines? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Full statement logging problematic on larger machines?
Date
Msg-id 29255.1236822351@sss.pgh.pa.us
Whole thread Raw
In response to Re: Full statement logging problematic on larger machines?  (Guillaume Smet <guillaume.smet@gmail.com>)
Responses Re: Full statement logging problematic on larger machines?
List pgsql-performance
Guillaume Smet <guillaume.smet@gmail.com> writes:
> I don't know if the logging integrated into PostgreSQL can bufferize
> its output. Andrew?

It uses fwrite(), and normally sets its output into line-buffered mode.
For a high-throughput case like this it seems like using fully buffered
mode might be an acceptable tradeoff.  You could try changing _IOLBF
to _IOFBF near the head of postmaster/syslogger.c and see if that helps.
(If it does, we could think about exposing some way of tuning this
without modifying the code, but for now you'll have to do that.)

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposal of tunable fix for scalability of 8.4
Next
From: Scott Carey
Date:
Subject: Re: Proposal of tunable fix for scalability of 8.4