Re: syslog performance when logging big statements - Mailing list pgsql-performance

From Tom Lane
Subject Re: syslog performance when logging big statements
Date
Msg-id 8675.1215527716@sss.pgh.pa.us
Whole thread Raw
In response to syslog performance when logging big statements  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Responses Re: syslog performance when logging big statements
List pgsql-performance
Achilleas Mantzios <achill@matrix.gatewaynet.com> writes:
> In this case, the INSERT *needs* 20 minutes to return. This is because the logging through syslog seems to severely
slowthe system. 
> If instead, i use stderr, even with logging_collector=on, the same statement needs 15 seconds to return.

Hmm.  There's a function in elog.c that breaks log messages into chunks
for syslog.  I don't think anyone's ever looked hard at its performance
--- maybe there's an O(N^2) behavior?

            regards, tom lane

pgsql-performance by date:

Previous
From: Achilleas Mantzios
Date:
Subject: syslog performance when logging big statements
Next
From: Achilleas Mantzios
Date:
Subject: Re: syslog performance when logging big statements