Re: WIP csv logs - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: WIP csv logs
Date
Msg-id 46672360.2050007@dunslane.net
Whole thread Raw
In response to Re: WIP csv logs  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-patches

Alvaro Herrera wrote:
> Andrew Dunstan wrote:
>
>> Attached is my WIP version of the CSV logs patch. It does not include
>> docs changes.
>>
>> It fixes the CSV thinko I just posted about, and also implements the
>> "safe to rotate" scheme I suggested yesterday, at quite a modest cost.
>> As Tom rightly points out, that does not protect us against interleaving
>> log lines from different backends, which is an open problem.
>>
>
> I wonder, if we were to use an LWLock to protect writing to the stderr
> pipe, would it be too contentious?
>
>
That was the first thing I wanted to try. I'll code it up and then
people can test to see if we get a significant performance hit.

cheers

andrew


pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: WIP csv logs
Next
From: Tom Lane
Date:
Subject: Re: WIP csv logs