And what about that Debugfile? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject And what about that Debugfile?
Date
Msg-id Pine.LNX.4.30.0106062128460.757-100000@peter.localdomain
Whole thread Raw
Responses Re: And what about that Debugfile?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
There is a "postgres" option -o which can redirect the server output to a
file.  The postmaster output will still go to stderr.  Does anyone recall
how this was supposed to be useful?

Interesting code (from elog):
   /* NOTE: debug file is typically pointed at stderr */   write(Debugfile, msg_buf, len);
   ...
   /*    * fflush here is just to improve the odds that we get to see    * the error message, in case things are so
hosedthat    * proc_exit crashes. [...]    */   fflush(stdout);   fflush(stderr);
 

Fat chance.  ;-)

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Dual-CPU slower then Single under HP?
Next
From: ncm@zembu.com (Nathan Myers)
Date:
Subject: Re: Idea: quicker abort after loss of client connection