Thread: WIP csv logs
View Single Post

   
  #4 (permalink)  
Old 04-18-2008, 10:12 AM
Tom Lane
 
Posts: n/a
Default Re: WIP csv logs

Alvaro Herrera <alvherre@commandprompt.com> writes:
> I wonder, if we were to use an LWLock to protect writing to the stderr
> pipe, would it be too contentious?


Sorry, that's a nonstarter.

1. Not all our processes are connected to shared memory. Even the ones
that are don't necessarily have PGPROCs.

2. If somebody crashes while holding the lock, the entire system
including the postmaster soon freezes up.

3. Having the postmaster take LWLocks is verboten anyway, mainly because
of problem #2.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote