Re: COPYable logs status - Mailing list pgsql-hackers

From Tom Lane
Subject Re: COPYable logs status
Date
Msg-id 10294.1181575215@sss.pgh.pa.us
Whole thread Raw
In response to Re: COPYable logs status  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> I'll try to get a patch out for just the stderr case, which should be 
> back-patchable, then adjust the CSVlog patch to use it.

Sounds like a plan.

> I'm thinking of handling the partial lines with a small dynahash of 
> StringInfo buffers, which get discarded whenever we don't have a partial 
> line for the PID.

A hashtable might be overkill --- based on reports so far, it's unlikely
you'd have more than two or three messages being received concurrently,
so a simple list or array might be quicker to search.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: What's with the StartDb:2 failures on skylark?
Next
From: Magnus Hagander
Date:
Subject: ecpg compile error in regression tests